Commit 7014bed1 authored by stesie's avatar stesie

fix silc_free vs. free mixups

parent 10f56500
......@@ -624,7 +624,7 @@ void proc_channels_input(Channel *c, char *buf) {
}
}
}
silc_free(msg);
free(msg);
}
/* }}} */
......@@ -1940,19 +1940,19 @@ int verify_public_key(SilcPublicKey key, int remote) {
}
if(!strncmp((char *)pk, (char *)cached_pk->pk, pk_len)){
free(path);
free(fp);
silc_free(fp);
return KEY_TRUSTED;
}
else {
free(path);
free(fp);
silc_free(fp);
return KEY_INVALID;
}
}
}
closedir(dir);
free(path);
free(fp);
silc_free(fp);
return KEY_UNKOWN;
}
/* }}} */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment