diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-17 15:36:32 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-21 13:56:01 +0100 |
commit | 9631e5b1e490349dd59f0772ecba11be9f2ba963 (patch) | |
tree | c456c1e81cc6a3bfdbba8cfc6859d8bda92bf59a /source3/modules | |
parent | 72e02c73b64f1ff56b2d53ec63d68486a4f1ff90 (diff) | |
download | samba-9631e5b1e490349dd59f0772ecba11be9f2ba963.tar.gz samba-9631e5b1e490349dd59f0772ecba11be9f2ba963.tar.bz2 samba-9631e5b1e490349dd59f0772ecba11be9f2ba963.zip |
s3-vfs: Fix a null pointer deferference in vfs_media_harmony.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_media_harmony.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c index bdbb750e9c..79b165c794 100644 --- a/source3/modules/vfs_media_harmony.c +++ b/source3/modules/vfs_media_harmony.c @@ -1490,7 +1490,9 @@ static int mh_fstat(vfs_handle_struct *handle, out: DEBUG(MH_INFO_DEBUG, ("Leaving with fsp->fsp_name->st.st_ex_mtime " "%s", - ctime(&(fsp->fsp_name->st.st_ex_mtime.tv_sec)))); + fsp->fsp_name != NULL ? + ctime(&(fsp->fsp_name->st.st_ex_mtime.tv_sec)) : + "0")); return status; } |