ndp: Fix libxo formatting for the prefix expiry string

Fixes:	e1c7783e22 ("ndp(8): add structured output formatting via libxo")
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	Bell Tower Integration
This commit is contained in:
Mark Johnston 2024-07-15 16:06:24 -04:00
parent 5862c891bb
commit b387776788

View File

@ -1334,7 +1334,7 @@ plist(void)
if (p->expire == 0)
xo_emit(", expire=Never{en:permanent/true}");
else if (p->expire >= now.tv_sec)
xo_emit(", expire=%s{e:expires_sec/%d}",
xo_emit(", expire={:expires/%s}{e:expires_sec/%d}",
sec2str(expire_in), expire_in);
else
xo_emit(", expired{e:expires_sec/%d}", expire_in);