mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFp4 @1189741:
- Add missing nvlist_destroy(). - Don't override nvlout. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> MFC after: 3 days
This commit is contained in:
parent
3ae9762b9a
commit
93b3fdba4a
1 changed files with 2 additions and 2 deletions
|
|
@ -348,7 +348,6 @@ service_message(struct service *service, struct service_connection *sconn)
|
|||
error = 0;
|
||||
}
|
||||
} else {
|
||||
nvlout = nvlist_create(0);
|
||||
error = service->s_command(cmd,
|
||||
service_connection_get_limits(sconn), nvlin, nvlout);
|
||||
}
|
||||
|
|
@ -362,8 +361,9 @@ service_message(struct service *service, struct service_connection *sconn)
|
|||
if (cap_send_nvlist(service_connection_get_chan(sconn), nvlout) == -1) {
|
||||
pjdlog_errno(LOG_ERR, "Unable to send message to client");
|
||||
service_connection_remove(service, sconn);
|
||||
return;
|
||||
}
|
||||
|
||||
nvlist_destroy(nvlout);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue