minissdpd.c: Initialize pointers to NULL (fix)

This commit is contained in:
Thomas BERNARD 2014-04-12 10:05:42 +02:00
parent 4f230c809b
commit 140ee8d220
1 changed files with 1 additions and 0 deletions

View File

@ -658,6 +658,7 @@ void processRequest(struct reqelem * req)
syslog(LOG_ERR, "cannot allocate memory"); syslog(LOG_ERR, "cannot allocate memory");
goto error; goto error;
} }
memset(newserv, 0, sizeof(struct service)); /* set pointers to NULL */
if(containsForbiddenChars(p, l)) { if(containsForbiddenChars(p, l)) {
syslog(LOG_ERR, "bad request (st contains forbidden chars)"); syslog(LOG_ERR, "bad request (st contains forbidden chars)");
goto error; goto error;