You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/shell-fm/files/shell-fm-0.8-doublefree.patch

25 lines
445 B

Fix double free crash: http://bugs.gentoo.org/392413
--- source/sckif.c
+++ source/sckif.c
@@ -39,6 +39,8 @@
#include "split.h"
+#include "ropen.h" /* fshutdown */
+
struct hash track;
static int stcpsck = -1, sunixsck = -1;
@@ -191,9 +193,7 @@
if(disconnect) {
debug("removing client\n");
- shutdown(SHUT_RDWR, client_socket);
- close(client_socket);
- fclose(fd);
+ fshutdown(& fd);
remove_handle(client_socket);
}