gre: Ensure skb properties are consistently set.
[openvswitch] / ofproto / in-band.c
index 6f9e5c0930a628683f89bba12b5db0951761dbe0..9f4bc597144b9f0263604bac4e4875d2a0f44f5c 100644 (file)
@@ -833,7 +833,7 @@ in_band_set_remotes(struct in_band *ib, struct rconn **remotes, size_t n)
     free(ib->remotes);
 
     /* Set up new remotes. */
-    ib->remotes = n ? xzalloc(n * sizeof *ib->remotes) : 0;
+    ib->remotes = n ? xzalloc(n * sizeof *ib->remotes) : NULL;
     ib->n_remotes = n;
     for (i = 0; i < n; i++) {
         ib->remotes[i].rconn = remotes[i];