1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-27 19:35:18 +02:00
openwrt-packages/libs/keyutils/patches/020-rindex.patch
Daniel Golle 84be677313 keyutils: update to 1.6.3 and improve packaging
* switch to kernel.org upstream (most recent versions seem to be
   available only there)
 * package request-key, key.dns_resolver and their config file into
   new package 'keyutils'
 * refresh patches

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-12-14 22:15:05 +00:00

18 lines
457 B
Diff

--- a/key.dns_resolver.c
+++ b/key.dns_resolver.c
@@ -717,12 +717,12 @@ int main(int argc, char *argv[])
keyend = buf + ktlen + 1;
/* the actual key description follows the last semicolon */
- keyend = rindex(keyend, ';');
+ keyend = strrchr(keyend, ';');
if (!keyend)
error("Invalid key description: %s", buf);
keyend++;
- name = index(keyend, ':');
+ name = strchr(keyend, ':');
if (!name)
dns_query_a_or_aaaa(keyend, callout_info);