summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-07-01 13:02:43 +0200
committerKarolin Seeger <kseeger@samba.org>2013-07-04 09:33:29 +0200
commit096ff2e977694d1042567fb4b3bb97d9c8122eb7 (patch)
treed76359fd3bbcaceeb74b5bb6f6f685b6afa060e7
parent67c8f87c777d850cf9ec0080b4daa09adf40ec55 (diff)
downloadsamba-096ff2e977694d1042567fb4b3bb97d9c8122eb7.tar.gz
samba-096ff2e977694d1042567fb4b3bb97d9c8122eb7.tar.bz2
samba-096ff2e977694d1042567fb4b3bb97d9c8122eb7.zip
torture: Don't segfault in raw.session on error.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit d295e18409a2e18e52c5bb76fec0e0540b6199cf)
-rw-r--r--source4/torture/raw/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/raw/session.c b/source4/torture/raw/session.c
index fbfdced2f8..1937ef7a78 100644
--- a/source4/torture/raw/session.c
+++ b/source4/torture/raw/session.c
@@ -240,7 +240,7 @@ static bool test_session_expire1(struct torture_context *tctx)
char fname[256];
union smb_fileinfo qfinfo;
uint16_t vuid;
- uint16_t fnum;
+ uint16_t fnum = 0;
struct smb_composite_sesssetup io_sesssetup;
size_t i;