diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-02-10 00:18:54 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-02-10 00:18:54 +0100 |
commit | c72ecdba04e7e9c3a411daaeb6fabab85314f82a (patch) | |
tree | b2da84878e80c7ce83fc318a2ce70ddbcf73fcfb /main.c | |
parent | 0.0.3 (diff) | |
download | dnsfind-c72ecdba04e7e9c3a411daaeb6fabab85314f82a.tar dnsfind-c72ecdba04e7e9c3a411daaeb6fabab85314f82a.tar.gz dnsfind-c72ecdba04e7e9c3a411daaeb6fabab85314f82a.tar.bz2 dnsfind-c72ecdba04e7e9c3a411daaeb6fabab85314f82a.tar.lz dnsfind-c72ecdba04e7e9c3a411daaeb6fabab85314f82a.tar.xz dnsfind-c72ecdba04e7e9c3a411daaeb6fabab85314f82a.tar.zst dnsfind-c72ecdba04e7e9c3a411daaeb6fabab85314f82a.zip |
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -583,11 +583,11 @@ finished_sending: r = 17; goto r; } - if (sendto(s, u, L, 0, (struct sockaddr *) &m, sizeof(struct sockaddr)) == -1) { - perror("sendto(s,u, L, 0, (struct sockaddr *) &m, sizeof(struct sockaddr))"); + if (sendto(s, u, L, 0, (struct sockaddr *) &m, sizeof(struct sockaddr_in)) == -1) { + perror("sendto(s, u, L, 0, (struct sockaddr *) &m, sizeof(struct sockad..."); r = 18; goto r; - } + } /* https://stevecao.wordpress.com/2018/09/28/diagnosing-invalid-argument-error */ struct timespec z; i: if (clock_gettime(CLOCK_MONOTONIC, &z) == -1) { |