Skip to content

Instantly share code, notes, and snippets.

@stephenrjohnson
Created November 29, 2012 14:34
Show Gist options
  • Save stephenrjohnson/4169467 to your computer and use it in GitHub Desktop.
Save stephenrjohnson/4169467 to your computer and use it in GitHub Desktop.
centerim patch
--- ./libjabber/jconn.c.orig 2012-11-29 14:31:36.000000000 +0000
+++ ./libjabber/jconn.c 2012-11-29 14:32:16.000000000 +0000
@@ -824,7 +824,7 @@
free(hash);
close(sock);
close(fd_file);
- return;
+ return NULL;
}
recv( sock, buff, SEND_BUF, 0 );
@@ -833,7 +833,7 @@
free(hash);
close(sock);
close(fd_file);
- return;
+ return NULL;
}
//socks5 bytestream packet
@@ -851,7 +851,7 @@
free(hash);
close(sock);
close(fd_file);
- return;
+ return NULL;
}
recv( sock, buff, 47, 0 );
if( buff[0] != 0x05 || buff[3] != 0x03 )
@@ -859,7 +859,7 @@
free(hash);
close(sock);
close(fd_file);
- return;
+ return NULL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment