libads/ldap.c: return an error instead of crashing when no realm is given
commiteede88d036bf5333e39914d31247b8a3d4e0ce36
authorStefan Metzmacher <metze@samba.org>
Mon, 24 Nov 2008 14:07:56 +0000 (24 15:07 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 26 Nov 2008 09:13:43 +0000 (26 10:13 +0100)
tree147cd064766121807673330d768629871d9c28e8
parent30c18ed97e0be079e120ebb18554259091d63917
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