mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Return ENOTSUP instead of panicking on invalid sockopt
X11 handles this gracefully, and it makes more sense than panicking.
This commit is contained in:
parent
ee0c6e1b6d
commit
38e0d1b456
Notes:
sideshowbarker
2024-07-18 05:24:22 +09:00
Author: https://github.com/petelliott Commit: https://github.com/SerenityOS/serenity/commit/38e0d1b456a Pull-request: https://github.com/SerenityOS/serenity/pull/9559
1 changed files with 2 additions and 2 deletions
|
@ -399,9 +399,9 @@ KResult LocalSocket::getsockopt(FileDescription& description, int level, int opt
|
|||
|
||||
switch (option) {
|
||||
case SO_SNDBUF:
|
||||
TODO();
|
||||
return ENOTSUP;
|
||||
case SO_RCVBUF:
|
||||
TODO();
|
||||
return ENOTSUP;
|
||||
case SO_PEERCRED: {
|
||||
if (size < sizeof(ucred))
|
||||
return EINVAL;
|
||||
|
|
Loading…
Reference in a new issue