Skip to content

Commit c60cc71

Browse files
Add an explaination for a missing relay field for no gateway
Co-authored-by: Wouter Wijngaards <[email protected]>
1 parent ef87090 commit c60cc71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2759,7 +2759,7 @@ static int32_t parse_amtrelay_rdata(
27592759
/* no gateway requires a '.' as the relay in presentation format
27602760
* without parsing it into wireformat rdata */
27612761
if (!(token->length == 1 && *token->data == '.'))
2762-
SYNTAX_ERROR(parser, "Invalid %s in %s", NAME(&fields[3]), NAME(type));
2762+
SYNTAX_ERROR(parser, "Invalid %s in %s, the no gateway type (type 0) of AMTRELAY requires the relay field to have '.' in it", NAME(&fields[3]), NAME(type));
27632763
break;
27642764
case 1: /* IPv4 address */
27652765
type = (const type_info_t *)amtrelay_ipv4;

0 commit comments

Comments
 (0)