s3/getdcname: Fix 'net' crash.
authorKumar Thangavelu <Kumar.Thangavelu@riverbed.com>
Fri, 29 May 2009 09:27:38 +0000 (11:27 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Jun 2009 07:01:59 +0000 (09:01 +0200)
commit6f95595008bf6e6365ad372ad4b63566237df225
tree461ea15b07d4a3b7a35728ae0703fd648b2240ac
parentbc70ee9615790f7069848ff5c63c09796fcc1d83
s3/getdcname: Fix 'net' crash.

'net' command crashed when attempting to join a
domain. This occurred in a very specific case where
the DC had multiple IPs and one of the IPs was invalid.

Signed-off-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 795692bd9546b91647ea96cc43ebb5c8efc0aaf2)
(cherry picked from commit 1b401a1b5374d037757954bb023287fa57b1c9b9)
source3/libsmb/dsgetdcname.c