Branch: Tag:

2009-03-23

2009-03-23 12:51:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Forward port of 4.5 change that author never applied to 5.0:

revision 1.961
date: 2008-04-07 15:04:47 +0200; author: grubba
Updated SNMP protocol.

Rev: server/base_server/roxen.pike:1.1026

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1025 2009/03/20 14:38:17 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1026 2009/03/23 12:51:13 jonasw Exp $";      //! @appears roxen   //!
2736:       urls[url]->port = m[required_host][port];    urls[ourl]->port = m[required_host][port]; +  if (urls[ourl]->ports) { +  urls[ourl]->ports += ({ m[required_host][port] }); +  } else { +  urls[ourl]->ports = ({ m[required_host][port] }); +  }    continue; /* No need to open a new port */    }   
2794:       urls[ url ]->port = prot_obj;    urls[ ourl ]->port = prot_obj; +  if (urls[ourl]->ports) { +  urls[ourl]->ports += ({ prot_obj }); +  } else { +  urls[ourl]->ports = ({ prot_obj }); +  }    prot_obj->ref(url, urls[url]);       if( !prot_obj->bound )