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

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

version 1.12.2.1, 2000/09/01 18:23:18 version 1.12.2.2, 2000/11/08 21:30:31
Line 1 
Line 1 
 /*  /*
  *  
  * canohost.c  
  *  
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  *  
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved   *                    All rights reserved
  *  
  * Created: Sun Jul  2 17:52:22 1995 ylo  
  *  
  * Functions for returning the canonical host name of the remote site.   * Functions for returning the canonical host name of the remote site.
  *   *
    * As far as I am concerned, the code I have written for this software
    * can be used freely for any purpose.  Any derived versions of this
    * software must be clearly marked as such, and if the derived work is
    * incompatible with the protocol description in the RFC file, it must be
    * called by a name other than "ssh" or "Secure Shell".
  */   */
   
 #include "includes.h"  #include "includes.h"
Line 125 
Line 123 
                 else                  else
                         ipproto = IPPROTO_IP;                          ipproto = IPPROTO_IP;
                 option_size = sizeof(options);                  option_size = sizeof(options);
                 if (getsockopt(0, ipproto, IP_OPTIONS, (char *) options,                  if (getsockopt(socket, ipproto, IP_OPTIONS, (char *) options,
                     &option_size) >= 0 && option_size != 0) {                      &option_size) >= 0 && option_size != 0) {
                         cp = text;                          cp = text;
                         /* Note: "text" buffer must be at least 3x as big as options. */                          /* Note: "text" buffer must be at least 3x as big as options. */

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