Skip to content

Commit

Permalink
use exactly match when the port number is cared about.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakane committed Oct 2, 2001
1 parent 190b803 commit 8566d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kame/kame/racoon/remoteconf.c
@@ -1,4 +1,4 @@
/* $KAME: remoteconf.c,v 1.27 2001/10/02 03:43:16 sakane Exp $ */
/* $KAME: remoteconf.c,v 1.28 2001/10/02 03:46:41 sakane Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -114,7 +114,7 @@ getrmconf(remote)

LIST_FOREACH(p, &rmtree, chain) {
if ((!withport && cmpsaddrwop(remote, p->remote) == 0)
|| (withport && cmpsaddrwild(remote, p->remote) == 0)) {
|| (withport && cmpsaddrstrict(remote, p->remote) == 0)) {
plog(LLV_DEBUG, LOCATION, NULL,
"configuration found for %s.\n", buf);
return p;
Expand Down

0 comments on commit 8566d37

Please sign in to comment.