[git commit] libbb: reuse "bad port" error message string

Denys Vlasenko vda.linux at googlemail.com
Fri Sep 10 07:48:55 UTC 2021


commit: https://git.busybox.net/busybox/commit/?id=c00bcf2d2c41af832ca70c749f1300309bf1cb91
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

function                                             old     new   delta
.rodata                                           104251  104232     -19

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/xconnect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index f1983a68b..0e0b247b8 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -231,7 +231,7 @@ IF_NOT_FEATURE_IPV6(sa_family_t af = AF_INET;)
 		cp++; /* skip ':' */
 		port = bb_strtou(cp, NULL, 10);
 		if (errno || (unsigned)port > 0xffff) {
-			bb_error_msg("bad port spec '%s'", org_host);
+			bb_error_msg("bad port '%s'", cp);
 			if (ai_flags & DIE_ON_ERROR)
 				xfunc_die();
 			return NULL;


More information about the busybox-cvs mailing list