The return value to process_request should only be non-zero if there

was some fatal error.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3681 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-10-28 03:56:35 +00:00
parent cc9207c6aa
commit cfccafc623

View File

@@ -629,6 +629,7 @@ as_rep(KDC_REQ *req,
free_AS_REP(&rep); free_AS_REP(&rep);
out: out:
if(ret){ if(ret){
/* XXX should just return protocol errors */
krb5_mk_error(context, krb5_mk_error(context,
ret, ret,
e_text, e_text,
@@ -637,6 +638,7 @@ out:
server_princ, server_princ,
0, 0,
reply); reply);
ret = 0;
} }
out2: out2:
krb5_free_principal(context, client_princ); krb5_free_principal(context, client_princ);
@@ -1322,7 +1324,7 @@ tgs_rep(KDC_REQ *req,
} }
ret = tgs_rep2(&req->req_body, pa_data, data, from); ret = tgs_rep2(&req->req_body, pa_data, data, from);
out: out:
if(ret && data->data == NULL) if(ret && data->data == NULL){
krb5_mk_error(context, krb5_mk_error(context,
ret, ret,
NULL, NULL,
@@ -1331,5 +1333,6 @@ out:
NULL, NULL,
0, 0,
data); data);
return ret; }
return 0;
} }