6a043af7c6
* nbd-server: fix unsafe signal handling * define error values as part of the protocol * docs/proto: clarify NBD_CMD_FLUSH - Drop nbd_signaling_CVE-2015-0847.patch as fix is included in upstream OBS-URL: https://build.opensuse.org/package/show/network:utilities/nbd?expand=0&rev=33
13 lines
320 B
Diff
13 lines
320 B
Diff
Index: nbd-3.11/nbd-client.c
|
|
===================================================================
|
|
--- nbd-3.11.orig/nbd-client.c
|
|
+++ nbd-3.11/nbd-client.c
|
|
@@ -79,6 +79,7 @@ int check_conn(char* devname, int do_pri
|
|
}
|
|
buf[(len < 256) ? len : 255]='\0';
|
|
if(do_print) printf("%s\n", buf);
|
|
+ close(fd);
|
|
return 0;
|
|
}
|
|
|