diff options
| author | Felix Fietkau | 2023-05-30 18:11:13 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2023-05-30 18:11:14 +0000 |
| commit | 51be0ed659d0c8e86ef28b0de3da6b38809fa170 (patch) | |
| tree | 186d72bae28351ce0d338f01c7d72b2a47e10056 | |
| parent | 0e1c2fad3540fe3a17cbfa9cb3ac9d70670258f4 (diff) | |
| download | unetd-51be0ed659d0c8e86ef28b0de3da6b38809fa170.tar.gz | |
host: fix crash parsing gateway when no endpoint is specified
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | host.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -179,7 +179,7 @@ network_host_create(struct network *net, struct blob_attr *attr, bool dynamic) &ipaddr, ipaddr_len, &subnet, subnet_len, &endpoint_buf, endpoint ? strlen(endpoint) + 1 : 0, - &gateway_buf, gateway ? strlen(endpoint) + 1 : 0); + &gateway_buf, gateway ? strlen(gateway) + 1 : 0); host->node.key = strcpy(name_buf, name); peer = &host->peer; } |