From 9a380d2b77163f0d66777ed32367139cae1f51a7 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 21 Aug 2024 14:55:17 +0000 Subject: [PATCH] get rid of inet_aton OK deraadt --- games/hunt/huntd/driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/games/hunt/huntd/driver.c b/games/hunt/huntd/driver.c index 2efec81aaab..e8b9ae90510 100644 --- a/games/hunt/huntd/driver.c +++ b/games/hunt/huntd/driver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: driver.c,v 1.30 2020/02/14 19:17:33 schwarze Exp $ */ +/* $OpenBSD: driver.c,v 1.31 2024/08/21 14:55:17 florian Exp $ */ /* $NetBSD: driver.c,v 1.5 1997/10/20 00:37:16 lukem Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -107,7 +107,8 @@ main(int ac, char **av) Server_port = atoi(optarg); break; case 'a': - if (!inet_aton(optarg, (struct in_addr *)&Server_addr)) + if (inet_pton(AF_INET, optarg, + (struct in_addr *)&Server_addr) != 1) err(1, "bad interface address: %s", optarg); break; case 'D': -- 2.20.1