net: fix a crash with net ads keytab create
authorUri Simchoni <urisimchoni@gmail.com>
Wed, 23 Sep 2015 11:45:47 +0000 (14:45 +0300)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Oct 2015 07:40:10 +0000 (09:40 +0200)
commit2df7b85433bddf2dd28c6b7ed3dc94970ef40e36
treed8c98d330677612d19c2bc7f592f372556ab5cc3
parent2e516a79adf7e60749f78dc6c95ec3abdf602872
net: fix a crash with net ads keytab create

Fix a crash that happens when executing "net ads keytab create"
and the machine account in AD does not have setvice principal names
attached to it.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11528

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit e224e622971853bddbe24df717ea5dcddef71b89)
source3/libads/ldap.c