summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2010-02-20 04:26:50 +0000
committerKen Raeburn <raeburn@mit.edu>2010-02-20 04:26:50 +0000
commite161b755e2292fc774fb38c354566f0b8bffc30f (patch)
treea9f5b94530ae9a0d2aaba01ea7ed296e47f09ec1 /src
parent756973e189deba301b08f9bd5bd4cccb79741b1d (diff)
downloadkrb5-e161b755e2292fc774fb38c354566f0b8bffc30f.tar.gz
krb5-e161b755e2292fc774fb38c354566f0b8bffc30f.tar.xz
krb5-e161b755e2292fc774fb38c354566f0b8bffc30f.zip
Move array decl from mixed within code down into the block where it's
actually used, for C90 compliance. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23739 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/plugins/preauth/wpse/wpse_main.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/plugins/preauth/wpse/wpse_main.c b/src/plugins/preauth/wpse/wpse_main.c
index 5576a0837..14e994d42 100644
--- a/src/plugins/preauth/wpse/wpse_main.c
+++ b/src/plugins/preauth/wpse/wpse_main.c
@@ -304,19 +304,22 @@ server_verify(krb5_context kcontext,
#ifdef DEBUG
fprintf(stderr, "wpse: 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) {