Fix Coverity IDs 922 and 933
authorVolker Lendecke <vl@samba.org>
Fri, 19 Jun 2009 14:00:23 +0000 (16:00 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 19 Jun 2009 14:25:10 +0000 (16:25 +0200)
commit8d1b81926d95f149936f3eb0a50355707d6c8bfa
tree0c884a06969c0eb00e88fc03cb3c696f0a3a7dc3
parent4ad43a21344b43f1c9fe459165098bcab1695711
Fix Coverity IDs 922 and 933

In copy_internals(), if the !CAN_WRITE(conn) kicks in, we end up
dereferencing a NULL smb_filename.

This adds a simple protection around it.

Tim, please check!

Volker
source3/include/proto.h
source3/smbd/filename.c