summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-09-11 11:33:42 +0000
committerMichael Adam <obnox@samba.org>2014-09-12 02:45:40 +0200
commit8c1b1435fe102d36fbea54a941b04570d529a44c (patch)
tree6a9fcbf7abde52ce77d11c0f837cc27f1c325c08
parent4038eb8968c0a0ba2ecadd85ed6b38e430192481 (diff)
downloadsamba-8c1b1435fe102d36fbea54a941b04570d529a44c.tar.gz
samba-8c1b1435fe102d36fbea54a941b04570d529a44c.tar.xz
samba-8c1b1435fe102d36fbea54a941b04570d529a44c.zip
media_harmony: Fix a crash bug
Now that the dust has settled, fix a crash bug that was hidden behind the warnings... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Simo Sorce <idra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Sep 12 02:45:40 CEST 2014 on sn-devel-104
-rw-r--r--source3/modules/vfs_media_harmony.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c
index 7f499df37f..2418349298 100644
--- a/source3/modules/vfs_media_harmony.c
+++ b/source3/modules/vfs_media_harmony.c
@@ -490,8 +490,8 @@ static int alloc_get_client_smb_fname(struct vfs_handle_struct *handle,
DEBUG(MH_INFO_DEBUG, ("Entering with smb_fname->base_name '%s'\n",
smb_fname->base_name));
- clientFname = cp_smb_filename(ctx, smb_fname);
- if (clientFname == NULL) {
+ *clientFname = cp_smb_filename(ctx, smb_fname);
+ if ((*clientFname) == NULL) {
DEBUG(MH_ERR_DEBUG, ("alloc_get_client_smb_fname "
"NTERR\n"));
errno = ENOMEM;