Permalink
Browse files

try and trap a null pointer with screwed up upnp advert

  • Loading branch information...
1 parent e492348 commit 5c21aae81c524841fa63d51db9afaa90cf57cdc9 @RJ committed Jul 14, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 third-party/miniupnpc-20090605/miniupnpc.c
@@ -139,6 +139,7 @@ int simpleUPnPcommand(int s, const char * url, const char * service,
const char * action, struct UPNParg * args,
char * buffer, int * bufsize)
{
+ if(!url) return -1;
struct sockaddr_in dest;
char hostname[MAXHOSTNAMELEN+1];
unsigned short port = 0;

0 comments on commit 5c21aae

Please sign in to comment.