diff options
author | Ken Raeburn <raeburn@mit.edu> | 2006-05-13 06:41:37 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2006-05-13 06:41:37 +0000 |
commit | e3ea7ca48f21b0ce9e5acf81eecd578fadbe4bcf (patch) | |
tree | 5f56085ba58056a2c309826133d234878d4139a2 | |
parent | a451dd6ccd3041c7981cfabdf5f822752fcdecdd (diff) | |
download | krb5-e3ea7ca48f21b0ce9e5acf81eecd578fadbe4bcf.tar.gz krb5-e3ea7ca48f21b0ce9e5acf81eecd578fadbe4bcf.tar.xz krb5-e3ea7ca48f21b0ce9e5acf81eecd578fadbe4bcf.zip |
* main.c (initialize_realms): Use precise size allocation for dbname= parameter
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18007 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/kdc/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdc/main.c b/src/kdc/main.c index d03b81e03..7bdc96033 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -503,7 +503,7 @@ initialize_realms(krb5_context kcontext, int argc, char **argv) /* now db_name is not a seperate argument. It has to be passed as part of the db_args */ if( db_name == NULL ) { - db_name = malloc(1025); + db_name = malloc(sizeof("dbname=") + strlen(optarg)); if( db_name == NULL ) { fprintf(stderr,"%s: KDC cannot initialize. Not enough memory\n", |