[server] fix pointer NULL check after strdup() - found by Coverity
This commit is contained in:
@@ -188,8 +188,8 @@ get_raw_digest(char **digest, char *pkt_data)
|
||||
|
||||
*digest = strdup(tmp_digest);
|
||||
|
||||
if (digest == NULL)
|
||||
return SPA_MSG_ERROR;
|
||||
if (*digest == NULL)
|
||||
return SPA_MSG_ERROR; /* really a strdup() memory allocation problem */
|
||||
|
||||
fko_destroy(ctx);
|
||||
ctx = NULL;
|
||||
|
||||
Reference in New Issue
Block a user