s3/getdcname: Fix 'net' crash.
commit1b401a1b5374d037757954bb023287fa57b1c9b9
authorKumar Thangavelu <Kumar.Thangavelu@riverbed.com>
Fri, 29 May 2009 09:27:38 +0000 (29 11:27 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 29 May 2009 09:32:29 +0000 (29 11:32 +0200)
treeca1617f1d94480019050981d8911e60aa6819710
parent51610de47bb709739ba84075395f5409be5ebc5c
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)
source3/libsmb/dsgetdcname.c