mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +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 New Issue
Block a user