diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-22 16:56:14 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-10-22 16:56:14 +0000 |
commit | 361364e05d6379aff4087cb0e3ed831251e2c098 (patch) | |
tree | 28a62180c98139fb4a42609adfd87dfe0e9744b1 /usr.sbin/hostapd | |
parent | 862f47d32e95c459a45a285376f8a7b4a728f7a3 (diff) |
last one left behind.
all daemons synced.
ok reyk@
Diffstat (limited to 'usr.sbin/hostapd')
-rw-r--r-- | usr.sbin/hostapd/parse.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/hostapd/parse.y b/usr.sbin/hostapd/parse.y index 9ecb2a35a7b..e2a7170e788 100644 --- a/usr.sbin/hostapd/parse.y +++ b/usr.sbin/hostapd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.34 2007/10/16 20:01:23 mpf Exp $ */ +/* $OpenBSD: parse.y,v 1.35 2007/10/22 16:56:13 pyr Exp $ */ /* * Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org> @@ -1671,9 +1671,12 @@ pushfile(const char *name, int secret) struct file *nfile; if ((nfile = calloc(1, sizeof(struct file))) == NULL || - (nfile->name = strdup(name)) == NULL) + (nfile->name = strdup(name)) == NULL) { + warn("out of memory"); return (NULL); + } if ((nfile->stream = fopen(nfile->name, "r")) == NULL) { + warn("%s", nfile->name); free(nfile->name); free(nfile); return (NULL); |