summaryrefslogtreecommitdiff
path: root/conf/cf-lex.l
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-11-25 23:33:50 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-11-25 23:33:50 +0100
commitd80d3c03a1b7d8e1badabe4c88db570cf776c2e5 (patch)
tree33b07372724c3911c9eb4a25576fb096c7d21d1e /conf/cf-lex.l
parent4f0ecfcc2d048dd57fdd8ba007dd75556864e66f (diff)
parentbb8e28248be0ad1f728433e4884dfe2db3772b30 (diff)
Merge commit 'bb8e2824' into wireguard-next-tmp7-1
Diffstat (limited to 'conf/cf-lex.l')
-rw-r--r--conf/cf-lex.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index 92a25c67..6ac3ab20 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -246,7 +246,7 @@ WHITE [ \t]
({XIGIT}{2}){16,}|{XIGIT}{2}(:{XIGIT}{2}){15,}|hex:({XIGIT}{2}(:?{XIGIT}{2})*)? {
char *s = yytext;
- struct bytestring *bs;
+ struct adata *bs;
/* Skip 'hex:' prefix */
if (s[0] == 'h' && s[1] == 'e' && s[2] == 'x' && s[3] == ':')
@@ -256,7 +256,7 @@ WHITE [ \t]
if (len < 0)
cf_error("Invalid hex string");
- bs = cfg_allocz(sizeof(struct bytestring) + len);
+ bs = cfg_allocz(sizeof(struct adata) + len);
bs->length = bstrhextobin(s, bs->data);
ASSERT(bs->length == len);