From: Howard Chu Date: Sun, 12 Jul 2015 10:14:33 +0000 (+0100) Subject: ITS#8195 fix ITS#7027 regression, port number sign bit overflow X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4796f012098b51871311b9ea9f21c0e0934fc0a1;p=openldap ITS#8195 fix ITS#7027 regression, port number sign bit overflow Another bug from 5de85b922aaa5bfa6eb53db6000adf01ebdb0736 --- 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); } }