Almost right return value is not good. Oops.

This commit is contained in:
John Jones 2017-02-16 21:00:51 -05:00
parent d985919f41
commit 28961aa592

View file

@ -199,7 +199,7 @@ int libp2p_record_make_put_record (char** record_buf, size_t *rec_size, const st
free(bytes); free(bytes);
if (sign_buf != NULL) if (sign_buf != NULL)
free(sign_buf); free(sign_buf);
if (retVal = -1) { if (retVal == -1) {
free(*record_buf); free(*record_buf);
*record_buf = NULL; *record_buf = NULL;
} }