From e7c41bc9ce24cd4b3f7d4f4bfdd995c8fed61b60 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 12 Jul 2015 11:14:33 +0100 Subject: [PATCH] ITS#8195 fix ITS#7027 regression, port number sign bit overflow Another bug from 5de85b922aaa5bfa6eb53db6000adf01ebdb0736 --- libraries/libldap/dnssrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index da89b4a269..e4c6580320 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -399,7 +399,7 @@ add_size:; if(cur>0){ hostlist[cur++]=' '; } - cur += sprintf(&hostlist[cur], "%s:%hd", hostent_head[i].hostname, hostent_head[i].port); + cur += sprintf(&hostlist[cur], "%s:%hu", hostent_head[i].hostname, hostent_head[i].port); } } -- 2.39.5