minissdpd.c: Initialize pointers to NULL (fix)
This commit is contained in:
parent
4f230c809b
commit
140ee8d220
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue