[BACK]Return to dns.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/dns.c between version 1.12.2.1 and 1.12.2.2

version 1.12.2.1, 2006/02/03 03:01:56 version 1.12.2.2, 2006/10/06 03:19:32
Line 1 
Line 1 
 /*      $OpenBSD$       */  /* $OpenBSD$ */
   
 /*  /*
  * Copyright (c) 2003 Wesley Griffin. All rights reserved.   * Copyright (c) 2003 Wesley Griffin. All rights reserved.
Line 25 
Line 25 
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
   
 #include "includes.h"  #include <sys/types.h>
 RCSID("$OpenBSD$");  #include <sys/socket.h>
   
 #include <netdb.h>  #include <netdb.h>
   #include <stdio.h>
   #include <string.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "key.h"  #include "key.h"
Line 122 
Line 124 
                         *digest = (u_char *) xmalloc(*digest_len);                          *digest = (u_char *) xmalloc(*digest_len);
                         memcpy(*digest, rdata + 2, *digest_len);                          memcpy(*digest, rdata + 2, *digest_len);
                 } else {                  } else {
                         *digest = xstrdup("");                          *digest = (u_char *)xstrdup("");
                 }                  }
   
                 success = 1;                  success = 1;

Legend:
Removed from v.1.12.2.1  
changed lines
  Added in v.1.12.2.2