diff options
author | Jeremy Allison <jra@samba.org> | 1997-10-06 19:50:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-10-06 19:50:51 +0000 |
commit | 1f7a84bc9c343170ccf06c32d40fc2b07bff271d (patch) | |
tree | 26eae8809597afd4ccd44789779145afaf9f6c5a /source3/locking | |
parent | 2e92be3aaf01c574d32d1a10e1359888638b68bc (diff) | |
download | samba-1f7a84bc9c343170ccf06c32d40fc2b07bff271d.tar.gz samba-1f7a84bc9c343170ccf06c32d40fc2b07bff271d.tar.bz2 samba-1f7a84bc9c343170ccf06c32d40fc2b07bff271d.zip |
Finally ! Found & fixed crash bug with logging message when deleting
invalid share mode entries. Thanks to berg@wienrg.aut.alcatel.at (Dietmar Berg)
for the stack backtrace.
Jeremy (jallison@whistle.com)
(This used to be commit db4c2cb50e11d252ff3ba0e0973767e909dd33bd)
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/locking.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index f29c1a6105..6e321d0626 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -241,6 +241,7 @@ bucket %d\n", file_scanner_p->locking_version, dev, inode, hash_entry)); { /* Delete this share mode entry */ share_mode_entry *delete_entry_p = entry_scanner_p; + int share_mode = entry_scanner_p->share_mode; if(entry_prev_p == entry_scanner_p) { @@ -271,7 +272,7 @@ for dev = %d, ino = %d, hashbucket %d\n", file_scanner_p->num_share_mode_entries DEBUG(0,("get_share_modes (FAST_SHARE_MODES): process %d no longer exists and \ it left a share mode entry with mode 0x%X for file dev = %d, ino = %d in hash \ bucket %d (number of entries now = %d)\n", - pid, entry_scanner_p->share_mode, dev, inode, hash_entry, + pid, share_mode, dev, inode, hash_entry, file_scanner_p->num_share_mode_entries)); smb_shm_free(smb_shm_addr2offset(delete_entry_p)); |