diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-06-19 12:39:12 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-07-08 18:49:30 +0200 |
commit | d27f225d9a1064b5883002a293d6adddfbc99a07 (patch) | |
tree | 1350ed1a7ccf44fdcfefac02e204406eaddb0b69 /src/libhydra/plugins/resolve/resolve_handler.c | |
parent | f460facdca9995e32d1c69f84945a306c6063a40 (diff) | |
download | strongswan-d27f225d9a1064b5883002a293d6adddfbc99a07.tar.bz2 strongswan-d27f225d9a1064b5883002a293d6adddfbc99a07.tar.xz |
Use strpfx() helper where appropriate
Diffstat (limited to 'src/libhydra/plugins/resolve/resolve_handler.c')
-rw-r--r-- | src/libhydra/plugins/resolve/resolve_handler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libhydra/plugins/resolve/resolve_handler.c b/src/libhydra/plugins/resolve/resolve_handler.c index 6b8d6be7f..6c57fa0bf 100644 --- a/src/libhydra/plugins/resolve/resolve_handler.c +++ b/src/libhydra/plugins/resolve/resolve_handler.c @@ -126,7 +126,7 @@ static void remove_nameserver(private_resolve_handler_t *this, /* copy all, but matching line */ while (fgets(line, sizeof(line), in)) { - if (strneq(line, matcher, strlen(matcher))) + if (strpfx(line, matcher)) { DBG1(DBG_IKE, "removing DNS server %H from %s", addr, this->file); |