[PATCH] s3-lib: fix segf while reading incomplete session info (bug #10003)

Bjoern Baumbach bb at sernet.de
Mon Jul 8 09:03:33 MDT 2013


Hi!

If we are listing connections with net status shares or smbstatus, it's
possible that we get an incomplete session.
For this case we need to check if the session_info is already set or
not, otherwise we're using invalid pointers and the tools are segfaulting.

Please find and push (or comment) the attached patch-set by Metze and me.

There is an additional patch that avoids that we print incomplete
sessions e.g. without a service name.

Thanks
Björn

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug10003.patch
Type: text/x-patch
Size: 3894 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130708/d9dfa755/attachment.bin>


More information about the samba-technical mailing list