mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
57341fbcf3
commit
fd0cba238e
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue