mountd.c (172827) | mountd.c (173056) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Herb Hasler and Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 29 unchanged lines hidden (view full) --- 38 39#if 0 40#ifndef lint 41static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; 42#endif /*not lint*/ 43#endif 44 45#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Herb Hasler and Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 29 unchanged lines hidden (view full) --- 38 39#if 0 40#ifndef lint 41static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; 42#endif /*not lint*/ 43#endif 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/usr.sbin/mountd/mountd.c 172827 2007-10-20 11:25:34Z matteo $"); | 46__FBSDID("$FreeBSD: head/usr.sbin/mountd/mountd.c 173056 2007-10-27 12:24:47Z simon $"); |
47 48#include <sys/param.h> 49#include <sys/mount.h> 50#include <sys/fcntl.h> 51#include <sys/stat.h> 52#include <sys/syslog.h> 53#include <sys/sysctl.h> 54#include <sys/linker.h> --- 534 unchanged lines hidden (view full) --- 589 sin->sin_port = htons(0); 590 sin->sin_addr.s_addr = htonl(INADDR_ANY); 591 res->ai_addr = (struct sockaddr*) sin; 592 res->ai_addrlen = (socklen_t) 593 sizeof(res->ai_addr); 594 break; 595 case AF_INET6: 596 sin6 = malloc(sizeof(struct sockaddr_in6)); | 47 48#include <sys/param.h> 49#include <sys/mount.h> 50#include <sys/fcntl.h> 51#include <sys/stat.h> 52#include <sys/syslog.h> 53#include <sys/sysctl.h> 54#include <sys/linker.h> --- 534 unchanged lines hidden (view full) --- 589 sin->sin_port = htons(0); 590 sin->sin_addr.s_addr = htonl(INADDR_ANY); 591 res->ai_addr = (struct sockaddr*) sin; 592 res->ai_addrlen = (socklen_t) 593 sizeof(res->ai_addr); 594 break; 595 case AF_INET6: 596 sin6 = malloc(sizeof(struct sockaddr_in6)); |
597 if (res->ai_addr == NULL) | 597 if (sin6 == NULL) |
598 out_of_mem(); 599 sin6->sin6_family = AF_INET6; 600 sin6->sin6_port = htons(0); 601 sin6->sin6_addr = in6addr_any; 602 res->ai_addr = (struct sockaddr*) sin6; 603 res->ai_addrlen = (socklen_t) 604 sizeof(res->ai_addr); 605 break; --- 2202 unchanged lines hidden --- | 598 out_of_mem(); 599 sin6->sin6_family = AF_INET6; 600 sin6->sin6_port = htons(0); 601 sin6->sin6_addr = in6addr_any; 602 res->ai_addr = (struct sockaddr*) sin6; 603 res->ai_addrlen = (socklen_t) 604 sizeof(res->ai_addr); 605 break; --- 2202 unchanged lines hidden --- |