forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstream backport. Signed-off-by: Rosen Penev <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 3da07ae96f5b40f76b75e1ccd4b20267f6a5988e Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= <[email protected]> | ||
Date: Wed, 28 Aug 2024 09:43:04 +0200 | ||
Subject: [PATCH] remove incorrect freeaddrinfo call | ||
|
||
--- | ||
src/net.c | 1 - | ||
1 file changed, 1 deletion(-) | ||
|
||
--- a/src/net.c | ||
+++ b/src/net.c | ||
@@ -145,7 +145,6 @@ create_socket(int domain, int proto, con | ||
if ((gerror = getaddrinfo(server, portstr, &hints, &server_res)) != 0) { | ||
if (local) | ||
freeaddrinfo(local_res); | ||
- freeaddrinfo(server_res); | ||
return -1; | ||
} | ||
|