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.
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 {
/*