Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Modify the uc_entries allocation check such that the lhs is a constant. | 2009-06-07 | 1 | -2/+2 | |
| | | | | OK deraadt@ | ||||
* | correct error codes after malloc(3) failure, as 0 means RPC_SUCCESS; | 2009-06-06 | 1 | -3/+3 | |
| | | | | noticed by and OK deraadt@, ok millert@ | ||||
* | use calloc() and realloc() more; ok schwarze | 2009-06-06 | 2 | -21/+13 | |
| | |||||
* | use calloc() to provide size * nitems safety | 2009-06-05 | 1 | -3/+2 | |
| | |||||
* | use calloc() to provide size * nitems safety; ok millert | 2009-06-05 | 1 | -3/+2 | |
| | |||||
* | Proper error handling in clntraw_create: | 2009-06-04 | 1 | -6/+15 | |
| | | | | | | Bail out and clean up after all errors, and report in libc/rpc style. Among others, this fixes a NULL pointer dereference in clntraw_call. Feedback and ok kjell@ and millert@. | ||||
* | State that clnt{raw,udp}_create can fail. | 2009-06-03 | 1 | -2/+8 | |
| | | | | "no objection" millert@ | ||||
* | Don't postpone memory allocation for the error message to the error handler: | 2009-06-03 | 1 | -33/+14 | |
| | | | | | | | That way, memory exhaustion simply cannot be reported because it would require to... allocate memory. Instead, really use a statical buffer as it is advertised in the manual. "looks good" millert@ | ||||
* | When authnone_create fails, do not leave behind a NULL cl_auth attribute, | 2009-06-02 | 2 | -3/+13 | |
| | | | | | | because that one will typically derefenced later without any checking. Instead, flag the error condition and bail out cleanly. useful feedback from kjell@ and ok millert@ | ||||
* | make the documentation of {svc,clnt}*create complete and correct | 2009-06-02 | 2 | -10/+21 | |
| | | | | ok millert@ jmc@ | ||||
* | When an RPC client program encounters ENOMEM while trying to print | 2009-06-01 | 1 | -2/+4 | |
| | | | | | | an error message, rather skip the error message than dereferencing a NULL pointer. debugging help and ok kjell@ | ||||
* | Commit requested by marco: | 2008-12-09 | 3 | -26/+206 | |
| | | | | | Add nonblock support for xdrrecs ok millert blambert & otto; from NetBSD. libc bump to follow soon. | ||||
* | Fix param list for xdrrec_eof. Found during coding some stuff that uses | 2008-09-07 | 1 | -3/+3 | |
| | | | | xdr goo. | ||||
* | Change a very long selective list of all architectures which do IEEE into | 2008-06-25 | 1 | -10/+6 | |
| | | | | | | just handling the vax different (just vax for now, 'cause tahoe might even be too legacy for Miod) ok miod | ||||
* | document xdr_{u_}int64_t() functions | 2008-06-13 | 2 | -3/+23 | |
| | |||||
* | implement xdr_int64_t, xdr_u_int64_t | 2008-06-13 | 1 | -1/+55 | |
| | | | | from NetBSD | ||||
* | Fix comment typos; ok ray@, jmc@ | 2007-09-17 | 1 | -4/+4 | |
| | |||||
* | Remove wrong snprintf(3) truncation checks, which can't be | 2007-09-12 | 1 | -15/+25 | |
| | | | | | | | triggered and are off-by-one anyways. Instead replace them with correct checks and add all the missing cases. ok deraadt@ | ||||
* | Proper use of fseek/fseeko macros. | 2007-09-10 | 1 | -2/+2 | |
| | | | | OK joris@, otto@ | ||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | 2007-09-02 | 1 | -2/+2 | |
| | |||||
* | convert to new .Dd format; | 2007-05-31 | 6 | -12/+12 | |
| | |||||
* | eliminate call to abort(), which is very bad in libs. I forgat how | 2007-03-25 | 1 | -6/+9 | |
| | | | | | this diff came into my tree, apologies for not naming the contributor. ok tedu@ deraadt@ | ||||
* | Change hard coded numbers to sizeof(buf). Also change some | 2007-02-20 | 1 | -2/+2 | |
| | | | | | | | | sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@. | ||||
* | add void set_rpc_maxgrouplist(int), to be able to make mount_nfs -g | 2006-11-10 | 3 | -3/+32 | |
| | | | | | | working again. help from millert@, ok deraadt@ pedro@ | ||||
* | Teach'em about cpus in spandex | 2006-10-10 | 1 | -2/+2 | |
| | |||||
* | Check return value of authunix_create_default(); from bret lambert | 2006-09-22 | 1 | -3/+9 | |
| | | | | with some guidance by me; ok jaredy@ | ||||
* | dont put two '\n' at the end of the string returnd by clnt_sperror() | 2006-09-17 | 1 | -7/+7 | |
| | | | | ok deraadt@ | ||||
* | be more careful checking for (off_t)-1 as the failure condition from | 2006-04-02 | 1 | -4/+4 | |
| | | | | lseek(), not just any old -1; ok millert | ||||
* | sprinkle a socklen_t | 2006-04-02 | 1 | -2/+3 | |
| | |||||
* | sprinkle a bit of ARGSUSED | 2006-03-31 | 5 | -5/+16 | |
| | |||||
* | internal API newgetbroadcastnets() does not need a sock | 2006-03-31 | 1 | -5/+3 | |
| | |||||
* | Include param.h for MAXHOSTNAMELEN | 2006-01-17 | 1 | -4/+5 | |
| | |||||
* | Userland programs should include <errno.h> not <sys/errno.h> | 2005-12-21 | 4 | -8/+8 | |
| | | | | OK deraadt@ | ||||
* | Make xdrstdio_getlong() and xdrstdio_putlong() work on 64-bit big-endian | 2005-10-30 | 1 | -7/+6 | |
| | | | | | systems. From NetBSD and FreeBSD. ok deraadt@, otto@, "looks correct to me" fgsch@ | ||||
* | Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95. | 2005-10-10 | 1 | -2/+1 | |
| | | | | | Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks. | ||||
* | some fixes to the .Nm list: | 2005-10-02 | 1 | -2/+4 | |
| | | | | | - remove duplicate entry for clntudp_create - add missing entries for svc_{destroy,fds,run} | ||||
* | Use realloc() instead of malloc(). | 2005-09-10 | 1 | -5/+6 | |
| | | | | | | From: Alexander dot Farber at gmail dot com ok deraadt@ | ||||
* | zap remaining rcsid. | 2005-08-08 | 37 | -149/+37 | |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | impelmentation -> implementation | 2005-08-05 | 3 | -6/+6 | |
| | | | | yes, new typo for an old friend. | ||||
* | kernal->kernel; | 2005-08-01 | 2 | -4/+4 | |
| | | | | | from netbsd pr #30872 (anonymous post); ok deraadt@ krw@ | ||||
* | - sync prototypes and header excerpts to reality | 2005-07-22 | 1 | -2/+2 | |
| | | | | | | | - punctuation, rewording, typos/spelling, macro, and layout fixes - add crossrefs where relevant ok jmc | ||||
* | Do not define 'pl' globally. From Bjorn Sandell" <biorn at dce dot chalmers | 2005-04-25 | 1 | -3/+3 | |
| | | | | dot se>. ok deraadt@ | ||||
* | more snprintf return value sloppiness; ok otto | 2005-04-11 | 1 | -3/+7 | |
| | |||||
* | ansify. ok deraadt@ jaredy@ | 2005-04-01 | 38 | -692/+326 | |
| | |||||
* | - correct include file (from david leonard, pr 4147) | 2005-03-15 | 1 | -4/+4 | |
| | | | | | | | - r_number is type int, not long - lessen display indent to avoid line split ok deraadt@ millert@ | ||||
* | alyte spelling-in-comment fixes | 2005-02-17 | 1 | -2/+2 | |
| | |||||
* | Bit of KNF - replace (<type> *)0 and (<type> *)NULL with NULL. Pointed | 2005-01-08 | 12 | -49/+48 | |
| | | | | | | out by mickey@, seconded by millert@. ok deraadt@. | ||||
* | Ensure that 'addrs' is always initialized before use (from Yamamoto | 2004-12-17 | 1 | -11/+8 | |
| | | | | | | | | | | | 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@ | ||||
* | De-reference pointer *after* checking if it is NULL. | 2004-12-16 | 1 | -5/+9 | |
| | | | | ok millert@. | ||||
* | spacing | 2004-09-14 | 1 | -3/+1 | |
| |