diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-09-26 16:09:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-09-26 16:09:28 +0000 |
commit | cfaa13714df367aff51031e23cf7bc52aac393f9 (patch) | |
tree | 6d29476735be4553bcee3e8ea6378e2db9e8aa06 /sbin/mountd | |
parent | 270598dd720114cfb5f8d54e867679aee352f32e (diff) |
check strdup failure; ok anil millert
Diffstat (limited to 'sbin/mountd')
-rw-r--r-- | sbin/mountd/mountd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index f17bd0b6d6b..c5ee03a41a6 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mountd.c,v 1.59 2003/06/11 06:22:14 deraadt Exp $ */ +/* $OpenBSD: mountd.c,v 1.60 2003/09/26 16:09:27 deraadt Exp $ */ /* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */ /* @@ -939,6 +939,8 @@ get_exportlist(void) if (hpe == NULL) out_of_mem(); hpe->h_name = strdup("Default"); + if (hpe->h_name == NULL); + out_of_mem(); hpe->h_addrtype = AF_INET; hpe->h_length = sizeof (u_int32_t); hpe->h_addr_list = NULL; |