Skip to content

Commit 5691d8f

Browse files
committed
Fix lattitude parse in LOC RR
1 parent 3191848 commit 5691d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic/types.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ static int32_t parse_loc_rdata(
10361036
north_south:
10371037
if (token->data[0] == 'N')
10381038
latitude = htobe32((1u<<31) + degrees);
1039-
else if (token->data[1] == 'S')
1039+
else if (token->data[0] == 'S')
10401040
latitude = htobe32((1u<<31) - degrees);
10411041
else
10421042
SYNTAX_ERROR(parser, "Invalid %s in %s", NAME(&fields[4]), NAME(type));

0 commit comments

Comments
 (0)