diff options
author | Thijs Paelman <thijs@ouroboros.rocks> | 2023-12-15 00:33:32 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-12-17 13:25:06 +0100 |
commit | 9ecb29b3691df17c0beec56ddf4f27160bb3ef58 (patch) | |
tree | a4f1981c8001e4f1c78154347259e2a97bcc62e4 /src/lib/dev.c | |
parent | 020b06792ee590f49164a82cf75ed0f1242806cd (diff) | |
download | ouroboros-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 <thijs@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r-- | src/lib/dev.c | 2 |
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 *); |