aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 0bdd0371..7cfb2cbf 100644
--- a/driver.c
+++ b/driver.c
@@ -1012,7 +1012,7 @@ static int do_session(
struct addrinfo hints, *res;
int error;
- memset(&hints, sizeof(hints), 0);
+ memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_STREAM;
hints.ai_family = AF_UNSPEC;
hints.ai_flags = AI_CANONNAME;