svn rev #21740: trunk/src/lib/gssapi/krb5/
epeisach@MIT.EDU
epeisach at MIT.EDU
Tue Jan 13 14:43:20 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21740
Commit By: epeisach
Log Message:
FreeBSD compiler errors out on an error "zero or negative size array"
after setting up an array with no elements.
ifdef out array declarations and code that uses it until there are entries.
Affects: krb5_gss_inquire_cred_by_oid_ops and
krb5_gss_set_sec_context_option_ops which would return an error in any
case as here are no entries in the arrays.
Changed Files:
U trunk/src/lib/gssapi/krb5/gssapi_krb5.c
Modified: trunk/src/lib/gssapi/krb5/gssapi_krb5.c
===================================================================
--- trunk/src/lib/gssapi/krb5/gssapi_krb5.c 2009-01-13 01:17:16 UTC (rev 21739)
+++ trunk/src/lib/gssapi/krb5/gssapi_krb5.c 2009-01-13 19:43:18 UTC (rev 21740)
@@ -386,11 +386,13 @@
/*
* gss_inquire_cred_by_oid() methods
*/
+#if 0
static struct {
gss_OID_desc oid;
OM_uint32 (*func)(OM_uint32 *, const gss_cred_id_t, const gss_OID, gss_buffer_set_t *);
} krb5_gss_inquire_cred_by_oid_ops[] = {
};
+#endif
static OM_uint32
krb5_gss_inquire_cred_by_oid(OM_uint32 *minor_status,
@@ -425,6 +427,7 @@
cred = (krb5_gss_cred_id_t) cred_handle;
+#if 0
for (i = 0; i < sizeof(krb5_gss_inquire_cred_by_oid_ops)/
sizeof(krb5_gss_inquire_cred_by_oid_ops[0]); i++) {
if (g_OID_prefix_equal(desired_object, &krb5_gss_inquire_cred_by_oid_ops[i].oid)) {
@@ -434,6 +437,7 @@
data_set);
}
}
+#endif
*minor_status = EINVAL;
@@ -443,11 +447,13 @@
/*
* gss_set_sec_context_option() methods
*/
+#if 0
static struct {
gss_OID_desc oid;
OM_uint32 (*func)(OM_uint32 *, gss_ctx_id_t *, const gss_OID, const gss_buffer_t);
} krb5_gss_set_sec_context_option_ops[] = {
};
+#endif
static OM_uint32
krb5_gss_set_sec_context_option (OM_uint32 *minor_status,
@@ -480,6 +486,7 @@
return GSS_S_NO_CONTEXT;
}
+#if 0
for (i = 0; i < sizeof(krb5_gss_set_sec_context_option_ops)/
sizeof(krb5_gss_set_sec_context_option_ops[0]); i++) {
if (g_OID_prefix_equal(desired_object, &krb5_gss_set_sec_context_option_ops[i].oid)) {
@@ -489,6 +496,7 @@
value);
}
}
+#endif
*minor_status = EINVAL;
More information about the cvs-krb5
mailing list