summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/wmpop3lb/files/wmpop3lb-2.4.2-socket-close.patch')
-rw-r--r--x11-plugins/wmpop3lb/files/wmpop3lb-2.4.2-socket-close.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-plugins/wmpop3lb/files/wmpop3lb-2.4.2-socket-close.patch b/x11-plugins/wmpop3lb/files/wmpop3lb-2.4.2-socket-close.patch
new file mode 100644
index 000000000000..d90befd22e2a
--- /dev/null
+++ b/x11-plugins/wmpop3lb/files/wmpop3lb-2.4.2-socket-close.patch
@@ -0,0 +1,22 @@
+diff -Naur wmpop3lb2.4.2/wmpop3/Pop3Client.c wmpop3lb2.4.2-pathed/wmpop3/Pop3Client.c
+--- wmpop3lb2.4.2/wmpop3/Pop3Client.c 2002-06-27 16:04:42.000000000 +0200
++++ wmpop3lb2.4.2-pathed/wmpop3/Pop3Client.c 2005-10-28 13:14:44.000000000 +0300
+@@ -67,12 +67,18 @@
+ pc->server.sin_family = AF_INET;
+ pc->hp = gethostbyname(serverName);
+ if( pc->hp == 0)
++ {
++ close(pc->s);
+ return -1;
++ }
+ memcpy( &(pc->server.sin_addr), pc->hp->h_addr, pc->hp->h_length);
+ pc->server.sin_port = htons(port);
+ if ( connect(pc->s, (struct sockaddr *)&(pc->server)
+ , sizeof(pc->server)) < 0 )
++ {
++ close(pc->s);
+ return -1;
++ }
+ pc->connected = CONNECTED;
+ return 0;
+ }