diff options
Diffstat (limited to 'source3/libads/kerberos.c')
-rw-r--r-- | source3/libads/kerberos.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index b586d84226..a80837cf4d 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -114,14 +114,7 @@ int ads_kinit_password(ADS_STRUCT *ads) char *s; int ret; - if (asprintf(&s, "%s@%s", ads->auth.user_name, ads->auth.realm) == -1) { - return KRB5_CC_NOMEM; - } - - if (!ads->auth.password) { - return KRB5_LIBOS_CANTREADPWD; - } - + asprintf(&s, "%s@%s", ads->auth.user_name, ads->auth.realm); ret = kerberos_kinit_password(s, ads->auth.password, ads->auth.time_offset); if (ret) { |