mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
dirmngr: Fix plus1_ns.
* dirmngr/dns.c (plus1_ns): Fix the initial implementation. -- Fixes-commit: 64904ce627b6b0661acf15b5b70103c4842bb0f3 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
f053f99ed0
commit
60d9a9e6b4
@ -54,6 +54,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
#ifdef TIME_WITH_SYS_TIME
|
||||||
|
#include <sys/time.h> /* gettimeofday(2) */
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <sys/time.h> /* gettimeofday(2) */
|
#include <sys/time.h> /* gettimeofday(2) */
|
||||||
#include <sys/types.h> /* FD_SETSIZE socklen_t */
|
#include <sys/types.h> /* FD_SETSIZE socklen_t */
|
||||||
@ -1971,7 +1974,7 @@ void dns_p_dictadd(struct dns_packet *P, unsigned short dn) {
|
|||||||
static inline uint16_t
|
static inline uint16_t
|
||||||
plus1_ns (uint16_t count_net)
|
plus1_ns (uint16_t count_net)
|
||||||
{
|
{
|
||||||
uint16_t count = ntohs (count);
|
uint16_t count = ntohs (count_net);
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
return htons (count);
|
return htons (count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user