stream_init() didn't initialize the remote_ip, remote_port, local_ip, or
local_port members of the stream, so "unix" streams that don't have any of
those would get random values instead.
Reported-by: "Voravit T." <voravit@kth.se>
Reported-by: Jari Sundell <sundell.software@gmail.com>
Jad Naous jnaous@gmail.com
Jan Medved jmedved@juniper.net
Janis Hamme janis.hamme@student.kit.edu
+Jari Sundell sundell.software@gmail.com
Jed Daniels openvswitch@jeddaniels.com
Jeongkeun Lee jklee@hp.com
Joan Cirer joan@ev0.net
Teemu Koponen koponen@nicira.com
Tyler Coumbes coumbes@gmail.com
Vishal Swarankar vishal.swarnkar@gmail.com
+Voravit T. voravit@kth.se
YAMAMOTO Takashi yamamoto@valinux.co.jp
Yongqiang Liu liuyq7809@gmail.com
kk yap yapkke@stanford.edu
stream_init(struct stream *stream, struct stream_class *class,
int connect_status, const char *name)
{
+ memset(stream, 0, sizeof *stream);
stream->class = class;
stream->state = (connect_status == EAGAIN ? SCS_CONNECTING
: !connect_status ? SCS_CONNECTED