diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2005-01-03 00:16:07 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2005-01-03 00:16:07 +0000 |
| commit | dd49efac2fa69e69598888ecf3e8a4e8dbb998ae (patch) | |
| tree | 6a0200bba87da45b744fab4aabb53f1542762ebb /sys/netatalk | |
| parent | 938e27a7e585589c5908e262877ae2e4a62d777c (diff) | |
Notes
Diffstat (limited to 'sys/netatalk')
| -rw-r--r-- | sys/netatalk/ddp_pcb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netatalk/ddp_pcb.c b/sys/netatalk/ddp_pcb.c index dd69850cd8fd..dda2cb79fc31 100644 --- a/sys/netatalk/ddp_pcb.c +++ b/sys/netatalk/ddp_pcb.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004 Robert N. M. Watson + * Copyright (c) 2004-2005 Robert N. M. Watson * Copyright (c) 1990,1994 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. * @@ -254,6 +254,8 @@ at_pcballoc(struct socket *so) DDP_LIST_XLOCK_ASSERT(); MALLOC(ddp, struct ddpcb *, sizeof *ddp, M_PCB, M_NOWAIT | M_ZERO); + if (ddp == NULL) + return (ENOBUFS); DDP_LOCK_INIT(ddp); ddp->ddp_lsat.sat_port = ATADDR_ANYPORT; |
