summaryrefslogtreecommitdiff
path: root/source3/lib
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
commit75731f8c23ee20f5d345615b1398be1991fff0e4 (patch)
tree5e0cd0cdaca6b0a93638ad4281a4ca731b283c23 /source3/lib
parent9ff032320da86c88b481f68886cdda713ed136fa (diff)
downloadsamba-75731f8c23ee20f5d345615b1398be1991fff0e4.tar.gz
samba-75731f8c23ee20f5d345615b1398be1991fff0e4.tar.bz2
samba-75731f8c23ee20f5d345615b1398be1991fff0e4.zip
fixed some crash bugs in the nt forms parsing
(This used to be commit e505a6ddf3df37ca485cae117c53fa96d736f897)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c
index f3e2879587..c3b444ffa1 100644
--- a/source3/lib/util_file.c
+++ b/source3/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;