diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/krb/ChangeLog | 2 | ||||
| -rw-r--r-- | src/lib/krb5/krb/parse.c | 9 |
2 files changed, 6 insertions, 5 deletions
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 <raeburn@mit.edu> + * 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 { /* |
