diff options
author | Tom Kistner <tom@duncanthrax.net> | 2005-05-25 17:50:33 +0000 |
---|---|---|
committer | Tom Kistner <tom@duncanthrax.net> | 2005-05-25 17:50:33 +0000 |
commit | 892a2814d206db660df9cc195ddff899ee4598d9 (patch) | |
tree | 53ba1ef5fa523f6794c871b6bfc1c3e3174289a7 | |
parent | 3348576fbe3b012b66076e49e5414cd04bbafbaa (diff) |
Fix possible NULL secret
-rw-r--r-- | src/src/srs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/srs.c b/src/src/srs.c index b96d5f67a..e534943b3 100644 --- a/src/src/srs.c +++ b/src/src/srs.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/srs.c,v 1.6 2005/05/24 08:50:35 ph10 Exp $ */ +/* $Cambridge: exim/src/src/srs.c,v 1.7 2005/05/25 17:50:33 tom Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -71,7 +71,7 @@ int eximsrs_init() /* First secret specified in secrets? */ co = 0; list = srs_secrets; - if(secret == NULL) + if(secret == NULL || *secret == NULL) { if((secret = string_nextinlist(&list, &co, secret_buf, SRS_MAX_SECRET_LENGTH)) == NULL) { |