View | Details | Raw Unified | Return to bug 500
Collapse All | Expand All

(-)listen_dnsport.fixed.c (+5 lines)
 Lines 328-333   create_udp_sock(int family, int socktype Link Here 
328
#    else
328
#    else
329
			closesocket(s);
329
			closesocket(s);
330
#    endif
330
#    endif
331
			*noproto = 0;
332
			*inuse = 0;
331
			return -1;
333
			return -1;
332
		}
334
		}
333
#  elif defined(IP_DONTFRAG)
335
#  elif defined(IP_DONTFRAG)
 Lines 341-352   create_udp_sock(int family, int socktype Link Here 
341
#    else
343
#    else
342
			closesocket(s);
344
			closesocket(s);
343
#    endif
345
#    endif
346
			*noproto = 0;
347
			*inuse = 0;
344
			return -1;
348
			return -1;
345
		}
349
		}
346
#  endif /* IPv4 MTU */
350
#  endif /* IPv4 MTU */
347
	}
351
	}
348
	if(bind(s, (struct sockaddr*)addr, addrlen) != 0) {
352
	if(bind(s, (struct sockaddr*)addr, addrlen) != 0) {
349
		*noproto = 0;
353
		*noproto = 0;
354
		*inuse = 0;
350
#ifndef USE_WINSOCK
355
#ifndef USE_WINSOCK
351
#ifdef EADDRINUSE
356
#ifdef EADDRINUSE
352
		*inuse = (errno == EADDRINUSE);
357
		*inuse = (errno == EADDRINUSE);

Return to bug 500