diff options
author | Volker Lendecke <vl@samba.org> | 2008-12-13 10:31:11 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-12-13 10:31:11 +0100 |
commit | 627c844a13caf869ae3c68ec780a8eded7cb181d (patch) | |
tree | d350a2124ad1dfbdaf58db49f797117a26bebeaa | |
parent | fd2bac966783a9aa3f278cc67219920384bc0981 (diff) | |
download | samba-627c844a13caf869ae3c68ec780a8eded7cb181d.tar.gz samba-627c844a13caf869ae3c68ec780a8eded7cb181d.tar.bz2 samba-627c844a13caf869ae3c68ec780a8eded7cb181d.zip |
Fix a valgrind error in get_relative_fid_filename
It doesn't really make sense to check the length of a not-yet-allocated string
:-)
Volker
-rw-r--r-- | source3/smbd/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 1e988f65ec..d22eda2bb5 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3067,7 +3067,7 @@ NTSTATUS get_relative_fid_filename(connection_struct *conn, files_struct *dir_fsp; char *parent_fname = NULL; - if (root_dir_fid == 0 || !fname || !new_fname || !*new_fname) { + if (root_dir_fid == 0 || !fname || !new_fname) { return NT_STATUS_INTERNAL_ERROR; } |