Commit c66a8828 authored by Pekka Pessi's avatar Pekka Pessi

outbound.c: using host_cmp() to check if Via host and received parameter differ

Bug reported by Marc Blanchet.

darcs-hash:20061120160021-65a35-e8ebe63f68e410467e5748b5e85e2dd88fd606f8.gz
parent 3c49b2e7
......@@ -521,7 +521,7 @@ int outbound_nat_detect(outbound_t *ob,
nat_detected = ob->ob_nat_detected;
nat_port = ob->ob_nat_port;
if (nat_detected && strcasecmp(received, nat_detected) == 0) {
if (nat_detected && host_cmp(received, nat_detected) == 0) {
if (nat_port && strcasecmp(rport, nat_port) == 0)
return 1;
if (v->v_rport == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment