mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a bad calloc(3) call
MFC after: 2 weeks
This commit is contained in:
parent
2c482d3a72
commit
8ad6d9175c
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ dns_getsrvinfo(const char *zone)
|
|||
p += len + NS_QFIXEDSZ;
|
||||
}
|
||||
|
||||
res = calloc(ancount, sizeof(struct dns_srvinfo));
|
||||
res = calloc(ancount, sizeof(struct dns_srvinfo *));
|
||||
if (res == NULL)
|
||||
return (NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue