diff options
author | Martin Willi <martin@strongswan.org> | 2009-04-14 10:34:24 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-04-14 10:34:24 +0000 |
commit | a44bb9345f0482b3dace19a27ee40320ddadc75f (patch) | |
tree | 34d75bd95b2868900213e13c31ddd892d2fd4904 /src/pluto/server.c | |
parent | 6e5c8d9413234b18a0631cddadd973a9f509708b (diff) | |
download | strongswan-a44bb9345f0482b3dace19a27ee40320ddadc75f.tar.bz2 strongswan-a44bb9345f0482b3dace19a27ee40320ddadc75f.tar.xz |
merged multi-auth branch back into trunk
Diffstat (limited to 'src/pluto/server.c')
-rw-r--r-- | src/pluto/server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pluto/server.c b/src/pluto/server.c index c14f72698..cae16294e 100644 --- a/src/pluto/server.c +++ b/src/pluto/server.c @@ -544,8 +544,10 @@ process_raw_ifaces(struct raw_iface *rifaces) struct raw_iface *vfp; /* ignore if virtual (ipsec*) interface */ - if (strncmp(ifp->name, IPSECDEVPREFIX, sizeof(IPSECDEVPREFIX)-1) == 0) + if (strneq(ifp->name, IPSECDEVPREFIX, sizeof(IPSECDEVPREFIX)-1)) + { continue; + } for (vfp = rifaces; vfp != NULL; vfp = vfp->next) { @@ -558,7 +560,7 @@ process_raw_ifaces(struct raw_iface *rifaces) /* Different entries with matching IP addresses. * Many interesting cases. */ - if (strncmp(vfp->name, IPSECDEVPREFIX, sizeof(IPSECDEVPREFIX)-1) == 0) + if (strneq(vfp->name, IPSECDEVPREFIX, sizeof(IPSECDEVPREFIX)-1)) { if (v != NULL && !streq(v->name, vfp->name)) { |