From: John Kohl Date: Wed, 27 Feb 1991 16:18:14 +0000 (+0000) Subject: use proper error codes X-Git-Tag: krb5-1.0-alpha4~160 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0c81e9c2bc247d3dcbddea62d71fc7d734915ee8;p=krb5.git use proper error codes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1812 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb425/rd_priv.c b/src/lib/krb425/rd_priv.c index 85cbcaed7..b4742fe72 100644 --- a/src/lib/krb425/rd_priv.c +++ b/src/lib/krb425/rd_priv.c @@ -61,7 +61,7 @@ MSG_DAT *msg; #ifdef EBUG ERROR(r); #endif - return(-1); + return(krb425error(r)); } if (rcache = (krb5_rcache) malloc(sizeof(*rcache))) { if (!(r = krb5_rc_resolve_type(&rcache, "dfl"))) { @@ -94,7 +94,7 @@ MSG_DAT *msg; #ifdef EBUG ERROR(ENOMEM); #endif - return(-1); + return(krb425error(ENOMEM)); } krb5_free_addr(saddr2); @@ -102,7 +102,7 @@ MSG_DAT *msg; #ifdef EBUG ERROR(r); #endif - return(-1); + return(krb425error(r)); } msg->app_data = (u_char *)out.data; diff --git a/src/lib/krb425/rd_safe.c b/src/lib/krb425/rd_safe.c index e2ef829ce..077b9ec46 100644 --- a/src/lib/krb425/rd_safe.c +++ b/src/lib/krb425/rd_safe.c @@ -60,7 +60,7 @@ MSG_DAT *msg; #ifdef EBUG ERROR(r); #endif - return(-1); + return(krb425error(r)); } if (rcache = (krb5_rcache) malloc(sizeof(*rcache))) { if (!(r = krb5_rc_resolve_type(&rcache, "dfl"))) { @@ -93,14 +93,14 @@ MSG_DAT *msg; #ifdef EBUG ERROR(ENOMEM); #endif - return(-1); + return(krb425error(ENOMEM)); } krb5_free_addr(saddr2); if (r) { #ifdef EBUG ERROR(r); #endif - return(-1); + return(krb425error(r)); } msg->app_data = (u_char *)out.data;