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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user