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

Diff for /src/usr.bin/ssh/servconf.c between version 1.345 and 1.346

version 1.345, 2019/01/19 21:31:32 version 1.346, 2019/01/19 21:37:48
Line 56 
Line 56 
 #include "myproposal.h"  #include "myproposal.h"
 #include "digest.h"  #include "digest.h"
   
 #include "opacket.h" /* XXX */  
 extern struct ssh *active_state; /* XXX */  
   
 static void add_listen_addr(ServerOptions *, const char *,  static void add_listen_addr(ServerOptions *, const char *,
     const char *, int);      const char *, int);
 static void add_one_listen_addr(ServerOptions *, const char *,  static void add_one_listen_addr(ServerOptions *, const char *,
Line 869 
Line 866 
 }  }
   
 struct connection_info *  struct connection_info *
 get_connection_info(int populate, int use_dns)  get_connection_info(struct ssh *ssh, int populate, int use_dns)
 {  {
         struct ssh *ssh = active_state; /* XXX */  
         static struct connection_info ci;          static struct connection_info ci;
   
         if (!populate)          if (ssh == NULL || !populate)
                 return &ci;                  return &ci;
         ci.host = auth_get_canonical_hostname(ssh, use_dns);          ci.host = auth_get_canonical_hostname(ssh, use_dns);
         ci.address = ssh_remote_ipaddr(ssh);          ci.address = ssh_remote_ipaddr(ssh);

Legend:
Removed from v.1.345  
changed lines
  Added in v.1.346