mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260223
|
@ -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