From: John Carr Date: Wed, 3 Apr 1991 17:05:07 +0000 (+0000) Subject: krb5_error.error is an unsigned type, don't need to check for error < 0 X-Git-Tag: krb5-1.0-alpha5~113 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c703dec05d5117e23941cec831bafbaae70cc98c;p=krb5.git krb5_error.error is an unsigned type, don't need to check for error < 0 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1988 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/slave/kprop.c b/src/slave/kprop.c index bd795250e..9db09c493 100644 --- a/src/slave/kprop.c +++ b/src/slave/kprop.c @@ -600,7 +600,7 @@ send_error(fd, err_text, err_code) error.server = my_creds.server; error.client = my_principal; error.error = err_code - ERROR_TABLE_BASE_krb5; - if (error.error < 0 || error.error > 127) + if (error.error > 127) error.error = KRB_ERR_GENERIC; if (err_text) text = err_text; diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index f3cc395cd..714f07bc9 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -721,7 +721,7 @@ send_error(fd, err_code, err_text) text = error_message(err_code); error.error = err_code - ERROR_TABLE_BASE_krb5; - if (error.error < 0 || error.error > 127) { + if (error.error > 127) { error.error = KRB_ERR_GENERIC; if (err_text) { sprintf(buf, "%s %s", error_message(err_code),