From b16570362ece38f04f721c4783fed6f3dc7c18c2 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 19 Feb 1993 00:23:23 +0000 Subject: [PATCH] Sandia bug fix. The client address field is optional git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2487 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/etpt2ketpt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/krb5/asn.1/etpt2ketpt.c b/src/lib/krb5/asn.1/etpt2ketpt.c index da709407d..279727839 100644 --- a/src/lib/krb5/asn.1/etpt2ketpt.c +++ b/src/lib/krb5/asn.1/etpt2ketpt.c @@ -104,10 +104,11 @@ register int *error; goto errout; } } - - retval->caddrs = KRB5_HostAddresses2krb5_address(val->caddr, error); - if (!retval->caddrs) { - goto errout; + if (val->caddr) { + retval->caddrs = KRB5_HostAddresses2krb5_address(val->caddr, error); + if (!retval->caddrs) { + goto errout; + } } if (val->authorization__data) { retval->authorization_data = -- 2.26.2