diff options
author | Jeremy Allison <jra@samba.org> | 2001-10-27 07:17:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-10-27 07:17:21 +0000 |
commit | b947ad3a491b6ad2c8aebd8604dee056ac874435 (patch) | |
tree | 8390509a8f31035e075aab7bdeeb946a3663b029 /source3/smbd | |
parent | d04824639dbc2864d2c9ad901a4b26e97c442c82 (diff) | |
download | samba-b947ad3a491b6ad2c8aebd8604dee056ac874435.tar.gz samba-b947ad3a491b6ad2c8aebd8604dee056ac874435.tar.bz2 samba-b947ad3a491b6ad2c8aebd8604dee056ac874435.zip |
smbd/notify_hash.c: Merged Herb's fix.
lib/debug.c: Fix for potential null pointer access.
Jeremy.
(This used to be commit 5a4d22dd66ab782f6161aa5a4162c0e7f1d811fb)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/notify_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/notify_hash.c b/source3/smbd/notify_hash.c index a8470102d5..178dcecc82 100644 --- a/source3/smbd/notify_hash.c +++ b/source3/smbd/notify_hash.c @@ -116,7 +116,7 @@ static BOOL notify_hash(connection_struct *conn, char *path, uint32 flags, if (flags & (FILE_NOTIFY_CHANGE_DIR_NAME|FILE_NOTIFY_CHANGE_FILE_NAME|FILE_NOTIFY_CHANGE_FILE)) { int i; unsigned char tmp_hash[16]; - mdfour(tmp_hash, (const unsigned char *)fname, strlen(fname)); + mdfour(tmp_hash, (unsigned char *)fname, strlen(fname)); for (i=0;i<16;i++) data->name_hash[i] ^= tmp_hash[i]; } @@ -195,7 +195,7 @@ static BOOL hash_check_notify(connection_struct *conn, uint16 vuid, char *path, static void hash_remove_notify(void *datap) { - SAFE_FREE(datap); + free(datap); } /**************************************************************************** |