diff options
author | phk <phk@FreeBSD.org> | 1997-10-04 18:21:15 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-10-04 18:21:15 +0000 |
commit | 4022dffbc172f4875d2775b011eb0b81fbe20c4f (patch) | |
tree | d0611fc431aa446fcf5bbce9766968a40fe024ab /sys/kern/uipc_socket.c | |
parent | e44ab64a4ddb94d24db11e5915b974082c96104e (diff) | |
download | FreeBSD-src-4022dffbc172f4875d2775b011eb0b81fbe20c4f.zip FreeBSD-src-4022dffbc172f4875d2775b011eb0b81fbe20c4f.tar.gz |
While booting diskless we have no proc pointer.
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r-- | sys/kern/uipc_socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 79bfaac..998e3f5 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)uipc_socket.c 8.3 (Berkeley) 4/15/94 - * $Id: uipc_socket.c,v 1.30 1997/09/02 20:05:57 bde Exp $ + * $Id: uipc_socket.c,v 1.31 1997/09/14 02:34:14 peter Exp $ */ #include <sys/param.h> @@ -360,7 +360,8 @@ sosend(so, addr, uio, top, control, flags, p) dontroute = (flags & MSG_DONTROUTE) && (so->so_options & SO_DONTROUTE) == 0 && (so->so_proto->pr_flags & PR_ATOMIC); - p->p_stats->p_ru.ru_msgsnd++; + if (p) + p->p_stats->p_ru.ru_msgsnd++; if (control) clen = control->m_len; #define snderr(errno) { error = errno; splx(s); goto release; } |