Skip to content
Permalink
Browse files

minissdpd.c: Initialize pointers to NULL (fix)

  • Loading branch information...
miniupnp committed Apr 12, 2014
1 parent 4f230c8 commit 140ee8d2204b383279f854802b27bdb41c1d5d1a
Showing with 1 addition and 0 deletions.
  1. +1 −0 minissdpd/minissdpd.c
@@ -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;

0 comments on commit 140ee8d

Please sign in to comment.
You can’t perform that action at this time.