summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authorThijs Paelman <[email protected]>2023-12-15 00:33:32 +0100
committerSander Vrijders <[email protected]>2023-12-17 13:25:06 +0100
commit9ecb29b3691df17c0beec56ddf4f27160bb3ef58 (patch)
treea4f1981c8001e4f1c78154347259e2a97bcc62e4 /src/lib/dev.c
parent020b06792ee590f49164a82cf75ed0f1242806cd (diff)
downloadouroboros-9ecb29b3691df17c0beec56ddf4f27160bb3ef58.tar.gz
ouroboros-9ecb29b3691df17c0beec56ddf4f27160bb3ef58.zip
lib: Fix wrong fccntl return for FLOWGRCVTIMEO
The send timeout was returned instead of the receive timeout. Signed-off-by: Thijs Paelman <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c2
1 files changed, 1 insertions, 1 deletions
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 *);