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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tom Kistner
Datum:  
To: exim-cvs
Betreff: [exim-cvs] cvs commit: exim/exim-src/src dk.c
tom 2005/06/24 09:23:22 BST

  Modified files:
    exim-src/src         dk.c 
  Log:
  Fixed putting a NUL char in a libdomainkeys buffer


  Revision  Changes    Path
  1.4       +3 -1      exim/exim-src/src/dk.c


  Index: dk.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/dk.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- dk.c    20 Jun 2005 11:20:41 -0000    1.3
  +++ dk.c    24 Jun 2005 08:23:21 -0000    1.4
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/dk.c,v 1.3 2005/06/20 11:20:41 ph10 Exp $ */
  +/* $Cambridge: exim/exim-src/src/dk.c,v 1.4 2005/06/24 08:23:21 tom Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -136,7 +136,7 @@
         dk_internal_status = dk_message(dk_context, CUS &dkbuff[i], 1);


     /* Flag end-of-message. */
  -  dk_internal_status = dk_end(dk_context, NULL);
  +  dk_internal_status = dk_end(dk_context, &dk_flags);


     /* Grab address/domain information. */
     p = dk_address(dk_context);
  @@ -160,10 +160,12 @@
           dk_verify_block->domain = string_copy((uschar *)(q+1));
           *q = '\0';
           dk_verify_block->local_part = string_copy((uschar *)p);
  +        *q = '@';
         }
       }
     }


  +  /* TODO: This call should be removed with lib version >= 0.67 */
     dk_flags = dk_policy(dk_context);


     /* Grab domain policy */