From 9ecb29b3691df17c0beec56ddf4f27160bb3ef58 Mon Sep 17 00:00:00 2001 From: Thijs Paelman Date: Fri, 15 Dec 2023 00:33:32 +0100 Subject: lib: Fix wrong fccntl return for FLOWGRCVTIMEO The send timeout was returned instead of the receive timeout. Signed-off-by: Thijs Paelman Signed-off-by: Sander Vrijders --- src/lib/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/dev.c b/src/lib/dev.c index d1f827f3..acf18da2 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -1096,7 +1096,7 @@ int fccntl(int fd, goto einval; if (!flow->rcv_timesout) goto eperm; - *timeo = flow->snd_timeo; + *timeo = flow->rcv_timeo; break; case FLOWGQOSSPEC: qs = va_arg(l, qosspec_t *); -- cgit v1.2.3