]> Git Repo - qemu.git/blobdiff - slirp/udp.c
pc-bios/s390-ccw: Move virtio-block related functions into a separate file
[qemu.git] / slirp / udp.c
index 93d72247920dabe2b845d191ebd53a03dab9e2e4..227d779022521bd3a170d41f0bcf65000435aeae 100644 (file)
@@ -335,6 +335,10 @@ udp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr,
            return NULL;
        }
        so->s = qemu_socket(AF_INET,SOCK_DGRAM,0);
+        if (so->s < 0) {
+            sofree(so);
+            return NULL;
+        }
        so->so_expire = curtime + SO_EXPIRE;
        insque(so, &slirp->udb);
 
This page took 0.026947 seconds and 4 git commands to generate.