mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2025-08-01 17:12:50 +02:00
fix: NULL out empty string
This commit is contained in:
parent
3a610feb96
commit
110e1b1ee6
2 changed files with 1 additions and 2 deletions
|
@ -421,7 +421,7 @@ err:
|
|||
static inline bool parse_awg_string(char **device_value, const char *name, const char *value) {
|
||||
size_t len = strlen(value);
|
||||
if (!len) {
|
||||
*device_value = "";
|
||||
*device_value = NULL;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -151,7 +151,6 @@ static inline void free_wgdevice(struct wgdevice *dev)
|
|||
free(peer);
|
||||
}
|
||||
|
||||
|
||||
free(dev->init_packet_magic_header);
|
||||
free(dev->response_packet_magic_header);
|
||||
free(dev->underload_packet_magic_header);
|
||||
|
|
Loading…
Add table
Reference in a new issue