Fix descriptor leak.

This commit is contained in:
Pawel Jakub Dawidek 2014-02-09 21:47:46 +00:00
parent bf90d007d3
commit 5564ef953a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261693

View File

@ -344,7 +344,7 @@ service_message(struct service *service, struct service_connection *sconn)
if (sock == -1) {
error = errno;
} else {
nvlist_add_descriptor(nvlout, "sock", sock);
nvlist_move_descriptor(nvlout, "sock", sock);
error = 0;
}
} else {