From: Michael Wallner Date: Wed, 7 Dec 2005 21:16:36 +0000 (+0000) Subject: - fix logic error X-Git-Tag: RELEASE_0_20_0~46 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a9dae847e351f662cf6ee8b6818e443e2c0f43ca;p=m6w6%2Fext-http - fix logic error --- diff --git a/http_url_api.c b/http_url_api.c index 9e87bae..d4f10e9 100644 --- a/http_url_api.c +++ b/http_url_api.c @@ -136,7 +136,7 @@ PHP_HTTP_API char *_http_absolute_url_ex( if ( (!strcmp(furl.scheme, "http") && (furl.port != 80)) || (!strcmp(furl.scheme, "https") && (furl.port != 443)) #if defined(PHP_WIN32) || defined(HAVE_NETDB_H) - || ((se = getservbyname(furl.scheme, "tcp")) && (ntohs(se->s_port) != furl.port)) + || ((!(se = getservbyname(furl.scheme, "tcp"))) || (ntohs(se->s_port) != furl.port)) #endif ) { char port_string[8] = {0};