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:
parent
060c66b4a3
commit
d8145c4b62
@ -279,7 +279,6 @@ gather_inet(int proto)
|
|||||||
} else {
|
} else {
|
||||||
if (opt_v)
|
if (opt_v)
|
||||||
warnx("invalid vflag 0x%x", inp->inp_vflag);
|
warnx("invalid vflag 0x%x", inp->inp_vflag);
|
||||||
free(sock);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ((sock = calloc(1, sizeof *sock)) == NULL)
|
if ((sock = calloc(1, sizeof *sock)) == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user