Don't free(sock) before it's even allocated.

Submitted by:	Joerg Sonnenberger <joerg@britannica.bec.de>
MFC after:	1 week
This commit is contained in:
des 2005-06-10 06:36:03 +00:00
parent 060c66b4a3
commit d8145c4b62

View File

@ -279,7 +279,6 @@ gather_inet(int proto)
} else {
if (opt_v)
warnx("invalid vflag 0x%x", inp->inp_vflag);
free(sock);
continue;
}
if ((sock = calloc(1, sizeof *sock)) == NULL)