diff options
-rw-r--r-- | proxy/src/gp_conv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/proxy/src/gp_conv.c b/proxy/src/gp_conv.c index 7f37be2..7855203 100644 --- a/proxy/src/gp_conv.c +++ b/proxy/src/gp_conv.c @@ -95,6 +95,11 @@ int gp_conv_gssx_to_oid_alloc(gssx_OID *in, gss_OID *out) { gss_OID o; + if (in == NULL || in->octet_string_len == 0) { + *out = GSS_C_NO_OID; + return 0; + } + o = calloc(1, sizeof(gss_OID_desc)); if (!o) { return ENOMEM; |