Index: nspr/pr/src/pthreads/ptio.c |
=================================================================== |
--- nspr/pr/src/pthreads/ptio.c (revision 233722) |
+++ nspr/pr/src/pthreads/ptio.c (working copy) |
@@ -4586,7 +4586,7 @@ |
if (!_pr_initialized) _PR_ImplicitInitialization(); |
fd = pt_SetMethods(osfd, PR_DESC_SOCKET_UDP, PR_FALSE, PR_TRUE); |
- if (NULL != fd) close(osfd); |
+ if (NULL == fd) close(osfd); |
return fd; |
} /* PR_ImportUDPSocket */ |