[server] minor memory leak bug fix during SPA digest calculation found by Coverity
authorMichael Rash <mbr@cipherdyne.org>
Tue, 14 May 2013 00:52:14 +0000 (20:52 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Tue, 14 May 2013 00:52:14 +0000 (20:52 -0400)
server/incoming_spa.c

index c352e3d..2403360 100644 (file)
@@ -189,7 +189,7 @@ get_raw_digest(char **digest, char *pkt_data)
     *digest = strdup(tmp_digest);
 
     if (*digest == NULL)
-        return SPA_MSG_ERROR;  /* really a strdup() memory allocation problem */
+        res = SPA_MSG_ERROR;  /* really a strdup() memory allocation problem */
 
     fko_destroy(ctx);
     ctx = NULL;