git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0831de7
)
smbd: Convert call_trans2qfilepathinfo to cp_smb_filename
author
Volker Lendecke
<vl@samba.org>
Thu, 11 Apr 2013 14:27:48 +0000
(16:27 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 17 Apr 2013 21:49:57 +0000
(14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index 5781c6194396fc5eab2ce89f752fca98db0e875d..9e2eae8a4199403696ea3d852567b18a6cdc2152 100644
(file)
--- a/
source3/smbd/trans2.c
+++ b/
source3/smbd/trans2.c
@@
-5216,10
+5216,9
@@
static void call_trans2qfilepathinfo(connection_struct *conn,
return;
}
- status = copy_smb_filename(talloc_tos(), fsp->fsp_name,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
- reply_nterror(req, status);
+ smb_fname = cp_smb_filename(talloc_tos(), fsp->fsp_name);
+ if (smb_fname == NULL) {
+ reply_nterror(req, NT_STATUS_NO_MEMORY);
return;
}