libsmb: Fix CID 242665 Out-of-bounds access
authorVolker Lendecke <vl@samba.org>
Mon, 11 Nov 2013 20:37:48 +0000 (20:37 +0000)
committerAndreas Schneider <asn@samba.org>
Wed, 13 Nov 2013 08:01:55 +0000 (09:01 +0100)
commit7039c627c5eda7eb5497d872b9fe68b5dbe23693
tree797cec173d607f0fc3586ea83bcbe4c3d7293d5d
parent744abc882284bfde41b087bc06e13160b915f371
libsmb: Fix CID 242665 Out-of-bounds access

Coverity is confused by the dual-use of "pss" as an array of size 1. This
is not strictly a bug here, but it is admittedly a small subtlety. It
should fix a whole bunch of Coverity issues. Normally I would resist to
change our code in response to a deficient static checker, but here I
would vote for this compromise.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/cliconnect.c