1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

buffer: fix use-before-nullcheck (coverity #1267979)

Additionally, the function call was already existing after
the NULL check
This commit is contained in:
Aris Adamantiadis
2015-02-03 22:21:22 +01:00
parent 760d93e87b
commit d3f30da158

View File

@@ -78,8 +78,6 @@ ssh_buffer base64_to_bin(const char *source) {
}
buffer = ssh_buffer_new();
/* base64 buffer often used to contain sensitive data */
ssh_buffer_set_secure(buffer);
if (buffer == NULL) {
SAFE_FREE(base64);
return NULL;