svn rev #23737: trunk/src/plugins/preauth/cksum_body/
raeburn@MIT.EDU
raeburn at MIT.EDU
Fri Feb 19 23:26:43 EST 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23737
Commit By: raeburn
Log Message:
Move array decl from mixed within code down into the block where it's
actually used, for C90 compliance.
Changed Files:
U trunk/src/plugins/preauth/cksum_body/cksum_body_main.c
Modified: trunk/src/plugins/preauth/cksum_body/cksum_body_main.c
===================================================================
--- trunk/src/plugins/preauth/cksum_body/cksum_body_main.c 2010-02-19 17:06:58 UTC (rev 23736)
+++ trunk/src/plugins/preauth/cksum_body/cksum_body_main.c 2010-02-20 04:26:43 UTC (rev 23737)
@@ -506,19 +506,22 @@
#ifdef DEBUG
fprintf(stderr, "cksum_body: doing authorization data!\n");
#endif
+ my_authz_data = malloc(2 * sizeof(*my_authz_data));
+ if (my_authz_data != NULL) {
#if 1 /* USE_5000_AD */
#define AD_ALLOC_SIZE 5000
- /* ad_header consists of a sequence tag (0x30) and length (0x82 0x1384)
- * followed by octet string tag (0x04) and length (0x82 0x1380) */
- krb5_octet ad_header[] = {0x30, 0x82, 0x13, 0x84, 0x04, 0x82, 0x13, 0x80};
+ /* ad_header consists of a sequence tag (0x30) and length
+ * (0x82 0x1384) followed by octet string tag (0x04) and
+ * length (0x82 0x1380) */
+ krb5_octet ad_header[] = {0x30, 0x82, 0x13, 0x84, 0x04, 0x82, 0x13, 0x80};
#else
#define AD_ALLOC_SIZE 100
- /* ad_header consists of a sequence tag (0x30) and length (0x62)
- * followed by octet string tag (0x04) and length (0x60) */
- krb5_octet ad_header[] = {0x30, 0x62, 0x04, 0x60};
+ /* ad_header consists of a sequence tag (0x30) and length
+ * (0x62) followed by octet string tag (0x04) and length
+ * (0x60) */
+ krb5_octet ad_header[] = {0x30, 0x62, 0x04, 0x60};
#endif
- my_authz_data = malloc(2 * sizeof(*my_authz_data));
- if (my_authz_data != NULL) {
+
my_authz_data[1] = NULL;
my_authz_data[0] = malloc(sizeof(krb5_authdata));
if (my_authz_data[0] == NULL) {
More information about the cvs-krb5
mailing list