libads/ldap.c: return an error instead of crashing when no realm is given
authorStefan Metzmacher <metze@samba.org>
Mon, 24 Nov 2008 14:07:56 +0000 (15:07 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 24 Nov 2008 14:30:11 +0000 (15:30 +0100)
commit8fc213fcd4c5a6ddaa0d44965bcd0ca1afbbbc84
tree9c6b09bc54720b696c0abf33fef5c72179a22d4c
parent4c82a8dd2f6fae1ea1722108c7f64e6a1286df15
libads/ldap.c: return an error instead of crashing when no realm is given

The bug was triggered by "net ads info -S 127.8.7.6" (where 127.8.7.6 doesn't exist)
and "disable netbios = yes".

metze

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e2a60d2e1fd7455f08e73f8d1c513ca240c0f0af)
source/libads/ldap.c