X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=util_oid.c;h=096c9f806a8b196e0c0ebff49b9a751393a92237;hb=refs%2Fheads%2Fjson-name;hp=7c63785fcb2bae87649eb77f7630e60bd66dd7ba;hpb=1ebd478024dd1b85c842db0dedb1c5c379b445bd;p=mech_eap.orig diff --git a/util_oid.c b/util_oid.c index 7c63785..096c9f8 100644 --- a/util_oid.c +++ b/util_oid.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, JANET(UK) + * Copyright (c) 2011, JANET(UK) * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -103,8 +103,9 @@ composeOid(OM_uint32 *minor, if (oid == GSS_C_NO_OID) { *minor = EINVAL; - return GSS_S_FAILURE; + return GSS_S_CALL_INACCESSIBLE_READ | GSS_S_FAILURE; } + if (oid->length < prefix_len) { *minor = GSSEAP_WRONG_SIZE; return GSS_S_FAILURE;