[exim-cvs] cvs commit: exim/exim-src/src srs.c

Góra strony
Delete this message
Reply to this message
Autor: Tom Kistner
Data:  
Dla: exim-cvs
Temat: [exim-cvs] cvs commit: exim/exim-src/src srs.c
tom 2005/05/25 18:50:33 BST

  Modified files:
    exim-src/src         srs.c 
  Log:
  Fix possible NULL secret


  Revision  Changes    Path
  1.7       +1 -1      exim/exim-src/src/srs.c


  Index: srs.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/srs.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- srs.c    24 May 2005 08:50:35 -0000    1.6
  +++ srs.c    25 May 2005 17:50:33 -0000    1.7
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/srs.c,v 1.6 2005/05/24 08:50:35 ph10 Exp $ */
  +/* $Cambridge: exim/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 @@
       /* 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)
         {