s3: Free principal if smb_krb5_principal_get_realm() fails
authorSwen Schillig <swen@linux.ibm.com>
Wed, 21 Nov 2018 11:05:24 +0000 (12:05 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 22 Nov 2018 07:22:18 +0000 (08:22 +0100)
commit7f902798a7f43ea84fb7757ea6b917a4717f99e0
treea5fb64a7a36875ff108bf5290b09b9d1286249f6
parent1295e2b754da6aeb1b5d2c6b07c8cc9afbba21f9
s3: Free principal if smb_krb5_principal_get_realm() fails

If smb_krb5_principal_get_realm() fails, procesing is aborted and
resources have to be free'd. In this context free'ing the principal
was missing.

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/libads/krb5_setpw.c