diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-30 15:13:15 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-30 15:13:15 +0000 |
commit | 05cb3464f972d336dcb82ca332bf9b2617646070 (patch) | |
tree | a4c9a392804b36234f9b459b7c3c0c2d03de8fb2 /source3/lib | |
parent | 29ba16f7925bddb96e2a51cc87e6e509608f8ce7 (diff) | |
download | samba-05cb3464f972d336dcb82ca332bf9b2617646070.tar.gz samba-05cb3464f972d336dcb82ca332bf9b2617646070.tar.bz2 samba-05cb3464f972d336dcb82ca332bf9b2617646070.zip |
- added some error checking
- removed the VTP hook in smbd
(This used to be commit 09355fcd50e6c9c0c81e5f70ab9b7ff88aa897bf)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c index c3b444ffa1..194fb7ae49 100644 --- a/source3/lib/util_file.c +++ b/source3/lib/util_file.c @@ -353,7 +353,7 @@ char *file_pload(char *syscmd, size_t *size) memcpy(p+total, buf, n); total += n; } - p[total] = 0; + if (p) p[total] = 0; sys_pclose(fd); |