From: John Kohl Date: Fri, 15 Mar 1991 15:39:52 +0000 (+0000) Subject: add firewall for malformed inputs X-Git-Tag: krb5-1.0-alpha4~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=09082e63a6f28e2c6094080701b404709de45cfb;p=krb5.git add firewall for malformed inputs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1920 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/kadat2adat.c b/src/lib/krb5/asn.1/kadat2adat.c index c595c8c87..51b213598 100644 --- a/src/lib/krb5/asn.1/kadat2adat.c +++ b/src/lib/krb5/asn.1/kadat2adat.c @@ -109,5 +109,7 @@ register int *error; goto errout; } } + if (retval == 0) + *error = ISODE_LOCAL_ERR_MISSING_PART; return(retval); } diff --git a/src/lib/krb5/asn.1/kaddr2addr.c b/src/lib/krb5/asn.1/kaddr2addr.c index 6e7cfbd2f..08bd93582 100644 --- a/src/lib/krb5/asn.1/kaddr2addr.c +++ b/src/lib/krb5/asn.1/kaddr2addr.c @@ -109,5 +109,7 @@ register int *error; goto errout; } } + if (retval == 0) + *error = ISODE_LOCAL_ERR_MISSING_PART; return(retval); } diff --git a/src/lib/krb5/asn.1/klsrq2lsrq.c b/src/lib/krb5/asn.1/klsrq2lsrq.c index fac150470..62aa544a2 100644 --- a/src/lib/krb5/asn.1/klsrq2lsrq.c +++ b/src/lib/krb5/asn.1/klsrq2lsrq.c @@ -106,5 +106,7 @@ register int *error; goto errout; } } + if (retval == 0) + *error = ISODE_LOCAL_ERR_MISSING_PART; return(retval); }