Author: cgutman
Date: Sun Aug 19 07:10:57 2012
New Revision: 57106
URL:
http://svn.reactos.org/svn/reactos?rev=57106&view=rev
Log:
[ADNS]
- Fix incorrect socket validity check that fails for unsigned types
Modified:
trunk/reactos/lib/3rdparty/adns/src/setup.c
Modified: trunk/reactos/lib/3rdparty/adns/src/setup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/adns/src/setu…
==============================================================================
--- trunk/reactos/lib/3rdparty/adns/src/setup.c [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/adns/src/setup.c [iso-8859-1] Sun Aug 19 07:10:57 2012
@@ -680,7 +680,7 @@
else break;
}
adns_socket_close(ads->udpsocket);
- if (ads->tcpsocket >= 0) adns_socket_close(ads->tcpsocket);
+ if (ads->tcpsocket != -1) adns_socket_close(ads->tcpsocket);
adns__vbuf_free(&ads->tcpsend);
adns__vbuf_free(&ads->tcprecv);
freesearchlist(ads);