From 09082e63a6f28e2c6094080701b404709de45cfb Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 15 Mar 1991 15:39:52 +0000 Subject: [PATCH] add firewall for malformed inputs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1920 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/kadat2adat.c | 2 ++ src/lib/krb5/asn.1/kaddr2addr.c | 2 ++ src/lib/krb5/asn.1/klsrq2lsrq.c | 2 ++ 3 files changed, 6 insertions(+) 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); } -- 2.26.2