Skip to content

Commit

Permalink
Grrr...
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed May 1, 2014
1 parent 3fc5cb1 commit 27f4808
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ rdns_generate_ptr_from_str (const char *str)
res = malloc (len);
if (res) {
snprintf (res, len, "%u.%u.%u.%u.in-addr.arpa",
(unsigned)bytes[3]&0xF,
(unsigned)bytes[2]&0xF,
(unsigned)bytes[1]&0xF,
(unsigned)bytes[0]&0xF);
(unsigned)bytes[3]&0xFF,
(unsigned)bytes[2]&0xFF,
(unsigned)bytes[1]&0xFF,
(unsigned)bytes[0]&0xFF);
}
}
else if (inet_pton (AF_INET6, str, &addr.v6) == 1) {
Expand Down

0 comments on commit 27f4808

Please sign in to comment.