From d11ffe9383ae0ec34836421926364b24c1d891ca Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Thu, 4 Nov 2021 14:38:01 +0200 Subject: [PATCH] session: use blobmsg_get_u64 for RPC_DUMP_EXPIRES We need to use blobmsg_get_u64 for RPC_DUMP_EXPIRES as this is now BLOBMSG_TYPE_INT64. Fixes: 20bf958bea20 ("session: use uloop_timeout_remaining64") Signed-off-by: Stijn Tintel Acked-by: Jo-Philipp Wich --- session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.c b/session.c index e646160..a11e3ab 100644 --- a/session.c +++ b/session.c @@ -1309,7 +1309,7 @@ rpc_session_from_blob(struct uci_context *uci, struct blob_attr *attr) avl_insert(&sessions, &ses->avl); - uloop_timeout_set(&ses->t, blobmsg_get_u32(tb[RPC_DUMP_EXPIRES]) * 1000); + uloop_timeout_set(&ses->t, blobmsg_get_u64(tb[RPC_DUMP_EXPIRES]) * 1000); return true; }