Skip to content
Permalink
Browse files Browse the repository at this point in the history
minissdpd.c: Initialize pointers to NULL (fix)
  • Loading branch information
miniupnp committed Apr 12, 2014
1 parent 4f230c8 commit 140ee8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions minissdpd/minissdpd.c
Expand Up @@ -658,6 +658,7 @@ void processRequest(struct reqelem * req)
syslog(LOG_ERR, "cannot allocate memory");
goto error;
}
memset(newserv, 0, sizeof(struct service)); /* set pointers to NULL */
if(containsForbiddenChars(p, l)) {
syslog(LOG_ERR, "bad request (st contains forbidden chars)");
goto error;
Expand Down

0 comments on commit 140ee8d

Please sign in to comment.