mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use the correct variable to check for a malloc failing. This fixes a
case where mountd would fail to start with "out of memory" logged to syslog.
This commit is contained in:
parent
438aeadf27
commit
89ca9145fb
1 changed files with 1 additions and 1 deletions
|
|
@ -594,7 +594,7 @@ create_service(struct netconfig *nconf)
|
|||
break;
|
||||
case AF_INET6:
|
||||
sin6 = malloc(sizeof(struct sockaddr_in6));
|
||||
if (res->ai_addr == NULL)
|
||||
if (sin6 == NULL)
|
||||
out_of_mem();
|
||||
sin6->sin6_family = AF_INET6;
|
||||
sin6->sin6_port = htons(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue