From: Michael Adam Date: Mon, 1 Dec 2008 05:20:22 +0000 (+0100) Subject: s3:vfs_tsmsm: fix potential segfault (freeing uninitialized buffer) X-Git-Tag: samba-4.0.0alpha6~480^2~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e021ecea45bbd41fb671d3f0cb8f5c271f14ba7f;p=thirdparty%2Fsamba.git s3:vfs_tsmsm: fix potential segfault (freeing uninitialized buffer) Michael --- diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c index ee958b1be51..6fb1d1d2d46 100644 --- a/source3/modules/vfs_tsmsm.c +++ b/source3/modules/vfs_tsmsm.c @@ -148,7 +148,7 @@ static bool tsmsm_is_offline(struct vfs_handle_struct *handle, dm_attrname_t dmname; int ret, lerrno; bool offline; - char *buf; + char *buf = NULL; size_t buflen; /* if the file has more than FILE_IS_ONLINE_RATIO of blocks available,