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

(-)syslogd.c (-2 / +2 lines)
Lines 399-407 Link Here
399
#endif
399
#endif
400
	for (i = 0; i < nfunix; i++) {
400
	for (i = 0; i < nfunix; i++) {
401
		memset(&sunx, 0, sizeof(sunx));
401
		memset(&sunx, 0, sizeof(sunx));
402
		sunx.sun_family = AF_UNIX;
402
		sunx.sun_family = PF_LOCAL;
403
		(void)strncpy(sunx.sun_path, funixn[i], sizeof(sunx.sun_path));
403
		(void)strncpy(sunx.sun_path, funixn[i], sizeof(sunx.sun_path));
404
		funix[i] = socket(AF_UNIX, SOCK_DGRAM, 0);
404
		funix[i] = socket(PF_LOCAL, SOCK_DGRAM, 0);
405
		if (funix[i] < 0 ||
405
		if (funix[i] < 0 ||
406
		    bind(funix[i], (struct sockaddr *)&sunx,
406
		    bind(funix[i], (struct sockaddr *)&sunx,
407
			 SUN_LEN(&sunx)) < 0 ||
407
			 SUN_LEN(&sunx)) < 0 ||

Return to bug 20889