summaryrefslogtreecommitdiffstats
path: root/source3/modules/vfs_tsmsm.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-12-01 06:20:22 +0100
committerMichael Adam <obnox@samba.org>2008-12-01 06:21:29 +0100
commite021ecea45bbd41fb671d3f0cb8f5c271f14ba7f (patch)
treeebf55d19e982f3d2914c761eadcdf23ad653d7c4 /source3/modules/vfs_tsmsm.c
parent7bd7846df7a28b9a066fd4d862de0e4d81aadb86 (diff)
downloadsamba-e021ecea45bbd41fb671d3f0cb8f5c271f14ba7f.tar.gz
samba-e021ecea45bbd41fb671d3f0cb8f5c271f14ba7f.tar.xz
samba-e021ecea45bbd41fb671d3f0cb8f5c271f14ba7f.zip
s3:vfs_tsmsm: fix potential segfault (freeing uninitialized buffer)
Michael
Diffstat (limited to 'source3/modules/vfs_tsmsm.c')
-rw-r--r--source3/modules/vfs_tsmsm.c2
1 files changed, 1 insertions, 1 deletions
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,