mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-12 08:41:51 +00:00
Network: Fix re-declaration of variable in smaller scope
Like this another variable is created and used within that if-block. The original final_msg stays NULL and sendto will always fail.
This commit is contained in:
parent
15a6ce257f
commit
da8d870d1e
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ int send_string(char *msg, bool is_enc) {
|
|||
}
|
||||
|
||||
size_t b64_max_len = B64_ENCODE_LEN(gcrypt_len);
|
||||
char* final_msg = dawn_malloc(b64_max_len);
|
||||
final_msg = dawn_malloc(b64_max_len);
|
||||
if (!final_msg) {
|
||||
dawnlog_error("sendto() error: not enough memory\n");
|
||||
dawn_free(gcrypt_buf);
|
||||
|
|
Loading…
Reference in a new issue