From 944284378664b59f7c43aa095348f9aa8865dacb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 20 Sep 2003 20:27:22 +0000 Subject: [PATCH] (process): remove a abort() git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12893 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kpasswd/kpasswdd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kpasswd/kpasswdd.c b/kpasswd/kpasswdd.c index 95fa735a5..6822de500 100644 --- a/kpasswd/kpasswdd.c +++ b/kpasswd/kpasswdd.c @@ -276,10 +276,15 @@ change (krb5_auth_context auth_context, } } ret = krb5_copy_principal(context, &princ, &principal); - if (ret) - abort(); if (*chpw.targrealm == NULL) free(princ.realm); + if (ret) { + krb5_warn(context, ret, "krb5_copy_principal"); + reply_priv(auth_context, s, sa, sa_size, + KRB5_KPASSWD_HARDERROR, + "failed to allocate principal"); + goto out; + } } else principal = admin_principal; } else {