[PATCH] s3-lib: fix segf while reading incomplete session info (bug #10003)
bb at sernet.de
Mon Jul 8 09:03:33 MDT 2013
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.
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...
Size: 3894 bytes
Desc: not available
More information about the samba-technical