summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_conv.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src/gp_conv.c')
-rw-r--r--proxy/src/gp_conv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/proxy/src/gp_conv.c b/proxy/src/gp_conv.c
index c5a96dc..f376793 100644
--- a/proxy/src/gp_conv.c
+++ b/proxy/src/gp_conv.c
@@ -445,9 +445,11 @@ int gp_conv_status_to_gssx(struct gssx_call_ctx *call_ctx,
status->major_status = ret_maj;
- ret = gp_conv_oid_to_gssx(mech, &status->mech);
- if (ret) {
- goto done;
+ if (mech) {
+ ret = gp_conv_oid_to_gssx(mech, &status->mech);
+ if (ret) {
+ goto done;
+ }
}
status->minor_status = ret_min;