aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2019-12-09 11:33:57 -0500
committerGreg Hudson <ghudson@mit.edu>2020-01-05 01:16:23 -0500
commit82d7ffb07c81aefeabf67c7c066070efbc34400b (patch)
treeac7f3462a29d5a800b5838575d1d20ad38f6626d /src/lib/krb5
parentac8865a22138ab0c657208c41be8fd6bc7968148 (diff)
downloadkrb5-82d7ffb07c81aefeabf67c7c066070efbc34400b.zip
krb5-82d7ffb07c81aefeabf67c7c066070efbc34400b.tar.gz
krb5-82d7ffb07c81aefeabf67c7c066070efbc34400b.tar.bz2
Fix error return case in serialization code
One of the changes in commit 81e47875e3de0e52fbb11d61ef30a9406497af73 unintentionally caused the return value of profile_ser_externalize() to be ignored.
Diffstat (limited to 'src/lib/krb5')
-rw-r--r--src/lib/krb5/krb/ser_ctx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/ser_ctx.c b/src/lib/krb5/krb/ser_ctx.c
index 80cd056..9d5f9de 100644
--- a/src/lib/krb5/krb/ser_ctx.c
+++ b/src/lib/krb5/krb/ser_ctx.c
@@ -204,8 +204,11 @@ k5_externalize_context(krb5_context context,
return (kret);
/* Finally, handle profile, if appropriate */
- if (context->profile != NULL)
+ if (context->profile != NULL) {
kret = profile_ser_externalize(NULL, context->profile, &bp, &remain);
+ if (kret)
+ return (kret);
+ }
/*
* If we were successful, write trailer then update the pointer and