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>
Fri, 29 May 2009 09:27:38 +0000 (11:27 +0200)
commit1a7898e3a8f2c2e2cacd645b97da88054df931ae
tree6871485e1a5580093f46c8db511cd5e4990f136b
parent2228cc6a0f942b774bef7fb0b99009897fa4dff4
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>
source3/libsmb/dsgetdcname.c