summaryrefslogtreecommitdiffstats
path: root/source/lib/util_file.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-18 02:17:46 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-18 02:17:46 +0000
commite505a6ddf3df37ca485cae117c53fa96d736f897 (patch)
tree378dc7d491f61c818b580a0cabb92ced658bbdce /source/lib/util_file.c
parenta0afe0d5f8378463b1e47cd779aee3af98c1940a (diff)
downloadsamba-e505a6ddf3df37ca485cae117c53fa96d736f897.tar.gz
samba-e505a6ddf3df37ca485cae117c53fa96d736f897.tar.xz
samba-e505a6ddf3df37ca485cae117c53fa96d736f897.zip
fixed some crash bugs in the nt forms parsing
Diffstat (limited to 'source/lib/util_file.c')
-rw-r--r--source/lib/util_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/lib/util_file.c b/source/lib/util_file.c
index f3e28795874..c3b444ffa16 100644
--- a/source/lib/util_file.c
+++ b/source/lib/util_file.c
@@ -371,6 +371,8 @@ char *file_load(char *fname, size_t *size)
int fd;
SMB_STRUCT_STAT sbuf;
char *p;
+
+ if (!fname || !*fname) return NULL;
fd = open(fname,O_RDONLY);
if (fd == -1) return NULL;