Almost right return value is not good. Oops.

yamux
John Jones 2017-02-16 21:00:51 -05:00
parent d985919f41
commit 28961aa592
1 changed files with 1 additions and 1 deletions

View File

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