From 02c30f8256578b347556043d340d4bfe49b921e3 Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Tue, 7 Mar 1995 21:28:10 +0000 Subject: [PATCH] Small changes in krb: 1 signed/unsigned, 1 disabling stderr, and changed LIB name git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5078 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 6 ++++++ src/lib/krb5/krb/Makefile.in | 2 +- src/lib/krb5/krb/chk_trans.c | 2 +- src/lib/krb5/krb/parse.c | 4 +++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 415c4b5d8..669e7116d 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +Tue Mar 7 13:20:06 1995 Keith Vetter (keithv@fusion.com) + + * Makefile.in: changed library name on the pc. + * parse.c: disabled for the PC error messages to stderr. + * chk_trans.c: fixed signed/unsigned assignment. + Thu Mar 2 11:45:00 1995 Keith Vetter (keithv@fusion.com) * compat_recv.c, get_fcre.c, recvauth.c, sendauth.c: changed diff --git a/src/lib/krb5/krb/Makefile.in b/src/lib/krb5/krb/Makefile.in index 7ac5d079f..c9556785d 100644 --- a/src/lib/krb5/krb/Makefile.in +++ b/src/lib/krb5/krb/Makefile.in @@ -2,7 +2,7 @@ CFLAGS = $(CCOPTS) $(DEFS) LDFLAGS = -g ##DOSBUILDTOP = ..\..\.. -##DOSLIBNAME=..\libkrb5.lib +##DOSLIBNAME=..\krb5.lib ##DOS!include $(BUILDTOP)\config\windows.in OBJS= addr_comp.$(OBJEXT) \ diff --git a/src/lib/krb5/krb/chk_trans.c b/src/lib/krb5/krb/chk_trans.c index e7627ff45..215991560 100644 --- a/src/lib/krb5/krb/chk_trans.c +++ b/src/lib/krb5/krb/chk_trans.c @@ -66,7 +66,7 @@ krb5_data *realm2; if (*(nextp-1) == '.') strcat(next, prev); retval = KRB5KRB_AP_ERR_ILL_CR_TKT; for (j = 0; tgs_list[j]; j++) { - if (strlen(next) == krb5_princ_realm(context, tgs_list[j])->length && + if (strlen(next) == (size_t) krb5_princ_realm(context, tgs_list[j])->length && !memcmp(next, krb5_princ_realm(context, tgs_list[j])->data, strlen(next))) { retval = 0; diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c index f403a3117..be48029e3 100644 --- a/src/lib/krb5/krb/parse.c +++ b/src/lib/krb5/krb/parse.c @@ -189,8 +189,10 @@ krb5_parse_name(context, name, nprincipal) #ifndef _WINDOWS fprintf(stderr, "Programming error in krb5_parse_name!"); -#endif exit(1); +#else + /* Need to come up with windows error handling mechanism */ +#endif } } else { /* -- 2.26.2