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)
committerJeremy Allison <jra@samba.org>
Fri, 25 Sep 2015 03:19:23 +0000 (05:19 +0200)
commite224e622971853bddbe24df717ea5dcddef71b89
tree74b9f02c79e445708eb4bd0bfd0eb3608a7a22ee
parent1b8ea12aa7627ace735923e68e59bc3d5cce3676
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>
source3/libads/ldap.c