From: Ken Raeburn Date: Fri, 4 Jun 2004 22:42:32 +0000 (+0000) Subject: * parse.c (krb5_parse_name): Use assert and abort, not exit X-Git-Tag: krb5-1.4-beta1~360 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ca35cfc32d6110877b5d2a42a929d50b19476485;p=krb5.git * parse.c (krb5_parse_name): Use assert and abort, not exit git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16412 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 811409b0b..22f6fdab3 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,5 +1,7 @@ 2004-06-04 Ken Raeburn + * parse.c (krb5_parse_name): Use assert and abort, not exit. + * srv_rcache.c (krb5_get_server_rcache): Don't forget to actually include the cache type in the cache name, after looking it up. diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c index 3debb6acf..6cf89058b 100644 --- a/src/lib/krb5/krb/parse.c +++ b/src/lib/krb5/krb/parse.c @@ -189,12 +189,11 @@ krb5_parse_name(krb5_context context, const char *name, krb5_principal *nprincip krb5_princ_component(context, principal, i)->length = size; if (i + 1 != components) { #if !defined(_WIN32) && !defined(macintosh) - fprintf(stderr, - "Programming error in krb5_parse_name!"); - exit(1); -#else - /* Need to come up with windows error handling mechanism */ + fprintf(stderr, + "Programming error in krb5_parse_name!"); #endif + assert(i + 1 == components); + abort(); } } else { /*