Initialize rconn "connected" member.
authorBen Pfaff <blp@nicira.com>
Wed, 30 Apr 2008 22:12:05 +0000 (15:12 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 2 May 2008 00:02:31 +0000 (17:02 -0700)
Found by valgrind.

lib/rconn.c

index f62ac61a5571620c925afb4ac9c9b9392bdf970c..73d42bb91cc4bee1220c902c9e407c6fea89fc08 100644 (file)
@@ -228,6 +228,7 @@ create_rconn(const char *name, int txq_limit, struct vconn *vconn)
     struct rconn *rc = xmalloc(sizeof *rc);
     assert(txq_limit > 0);
     rc->reliable = vconn == NULL;
+    rc->connected = vconn != NULL;
     rc->name = xstrdup(name);
     rc->vconn = vconn;
     queue_init(&rc->txq);