Skip to content

Commit 5ccdc90

Browse files
committed
Fix udp alloc failure not returning. Broken in f6efb94 (last commit)
1 parent f6efb94 commit 5ccdc90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wireguardif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ err_t wireguardif_init(struct netif *netif) {
968968

969969
if (!udp) {
970970
log_e(TAG "failed to allocate UDP");
971-
result = ERR_MEM;
971+
return ERR_MEM;
972972
}
973973

974974
result = udp_bind(udp, IP_ADDR_ANY, init_data->listen_port); // Note this listens on all interfaces! Really just want the passed netif

0 commit comments

Comments
 (0)