diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2010-04-24 08:00:13 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2010-04-24 08:00:13 +0000 |
commit | d269632bbad553bb70cc3933dce921d33d6479af (patch) | |
tree | acf25fd591ca653bb6d8512531e836a4ae715122 /sys/net/if_sl.c | |
parent | 51451a503aa2b481281695bc3f4757faa38fbec7 (diff) |
Make if_ppp and if_sl ioctl handlers return ENOTTY for unsupported
ioctls, instead of -1 or EINVAL. ENOTTY audit suggested to me by uwe.
ok dlg tedu
Diffstat (limited to 'sys/net/if_sl.c')
-rw-r--r-- | sys/net/if_sl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c index f49c428562e..a3a8418b4d0 100644 --- a/sys/net/if_sl.c +++ b/sys/net/if_sl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sl.c,v 1.39 2009/11/03 10:59:04 claudio Exp $ */ +/* $OpenBSD: if_sl.c,v 1.40 2010/04/24 08:00:12 stsp Exp $ */ /* $NetBSD: if_sl.c,v 1.39.4.1 1996/06/02 16:26:31 thorpej Exp $ */ /* @@ -391,7 +391,7 @@ sltioctl(tp, cmd, data, flag) break; default: - return (-1); + return (ENOTTY); } return (0); } |