#
0720f7c5 |
| 30-Dec-2020 |
benno <benno@openbsd.org> |
getifaddrs() can return entries where ifa_addr is NULL. Check for this before accessing anything in ifa_addr. ok claudio@
|
#
df69c215 |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
show more ...
|
#
b4c66e9d |
| 28-Dec-2015 |
mmcc <mmcc@openbsd.org> |
Remove NULL-checks before free() and a few related dead assignments.
ok and valuable input from millert@
|
#
85858ec2 |
| 13-Sep-2015 |
guenther <guenther@openbsd.org> |
Wrap <rpc/*.h> so that calls go direct and the symbols are all weak. Hide __xprt_register() and _authenticate(); truncate <rpc/svc_auth.h>
ok deraadt@
|
#
fa713987 |
| 20-Aug-2015 |
deraadt <deraadt@openbsd.org> |
All these files include <stdlib.h>, so do not need to cast malloc/calloc/realloc* returns.
|
#
cc062249 |
| 11-Nov-2014 |
guenther <guenther@openbsd.org> |
Merge from NetBSD from 1999-03-25:" * don't close the socket unless it was opened by the function * note (in the comments) that the client is responsible for closing the socket if they opened it,
Merge from NetBSD from 1999-03-25:" * don't close the socket unless it was opened by the function * note (in the comments) that the client is responsible for closing the socket if they opened it, or they didn't use CLNT_DESTROY()
fixes a couple of unnecessary closing of already-closed sockets. noted by: Matthias Drochner <M.Drochner@fz-juelich.de>"
tested by many in snaps ok schwarze@
show more ...
|
#
0b6ab73b |
| 12-Nov-2013 |
deraadt <deraadt@openbsd.org> |
insert the proper arguments into a prototype
|
#
cb7760d1 |
| 01-Sep-2010 |
millert <millert@openbsd.org> |
Oracle has re-licensed sunrpc under a three-clause BSD license. Update our sources appropriately. OK deraadt@ jsg@
|
#
1ed98fdf |
| 02-Sep-2007 |
deraadt <deraadt@openbsd.org> |
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
|
#
58884eaa |
| 22-Sep-2006 |
otto <otto@openbsd.org> |
Check return value of authunix_create_default(); from bret lambert with some guidance by me; ok jaredy@
|
#
44cae175 |
| 31-Mar-2006 |
deraadt <deraadt@openbsd.org> |
internal API newgetbroadcastnets() does not need a sock
|
#
c2c925de |
| 08-Aug-2005 |
espie <espie@openbsd.org> |
zap remaining rcsid.
Kill old files that are no longer compiled.
okay theo
|
#
384ec30a |
| 01-Apr-2005 |
otto <otto@openbsd.org> |
ansify. ok deraadt@ jaredy@
|
#
3f820ea1 |
| 08-Jan-2005 |
krw <krw@openbsd.org> |
Bit of KNF - replace (<type> *)0 and (<type> *)NULL with NULL. Pointed out by mickey@, seconded by millert@.
ok deraadt@.
|
#
4e08309e |
| 17-Dec-2004 |
krw <krw@openbsd.org> |
Ensure that 'addrs' is always initialized before use (from Yamamoto Takashi).
If no broadcast networks are found then just return RPC_CANTSEND.
Eliminate perror() calls (suggested by Yamamoto Takas
Ensure that 'addrs' is always initialized before use (from Yamamoto Takashi).
If no broadcast networks are found then just return RPC_CANTSEND.
Eliminate perror() calls (suggested by Yamamoto Takashi and seconded by deraadt@, otto@ and millert@) and just let return values speak.
ok millert@
show more ...
|
#
2cca59ed |
| 31-Dec-2003 |
millert <millert@openbsd.org> |
Implement svc_getreq_poll(3) and friends and use poll(2) instead of select(2) in the libc rpc code. The main difference between this and the previous version is the use of a simple free list that si
Implement svc_getreq_poll(3) and friends and use poll(2) instead of select(2) in the libc rpc code. The main difference between this and the previous version is the use of a simple free list that simplifies the logic when adding a socket to svc_pollfd. I've also added code to pack svc_pollfd when the free list gets too big. The idea general idea is to keep svc_pollfd as tightly packed as possible to make poll(2) efficient. Tested by many people and OK deraadt@
show more ...
|
#
e62fa231 |
| 06-Sep-2002 |
deraadt <deraadt@openbsd.org> |
use socklen_t where needed; henning pvalchev ok
|
#
41aa8645 |
| 15-Sep-2001 |
deraadt <deraadt@openbsd.org> |
prototype cleanup
|
#
0029bc2b |
| 24-Aug-2000 |
deraadt <deraadt@openbsd.org> |
uninit variables
|
#
b6cbecf9 |
| 19-May-2000 |
itojun <itojun@openbsd.org> |
use getifaddrs(3) instead of SIOCGIFCONF, to avoid alignment issues.
|
#
e512315e |
| 14-Aug-1998 |
deraadt <deraadt@openbsd.org> |
realloc repair
|
#
79a9d2e3 |
| 09-Jul-1997 |
deraadt <deraadt@openbsd.org> |
avoid close(closed_socket) or close(-1); it looks disgusting in kdump
|
#
e9819a9f |
| 22-Jan-1997 |
deraadt <deraadt@openbsd.org> |
handle SIOCGIFCONF for as many interfaces as provided
|
#
17ba8417 |
| 02-Jan-1997 |
deraadt <deraadt@openbsd.org> |
use arc4random for xid generation
|
#
648514c2 |
| 10-Dec-1996 |
deraadt <deraadt@openbsd.org> |
avoid close(-1) cases
|