[server] fix pointer NULL check after strdup() - found by Coverity

This commit is contained in:
Michael Rash
2013-05-13 20:41:25 -04:00
parent 0c3da4bee4
commit d60870740d
+2 -2
View File
@@ -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;