aland [Sun, 8 Apr 2007 06:12:07 +0000 (06:12 +0000)]
Pull fix for bug #436 from branch_1_1
aland [Sun, 8 Apr 2007 06:10:40 +0000 (06:10 +0000)]
Don't print errors if the error is zero.
This closes bug #436
aland [Sat, 7 Apr 2007 23:21:42 +0000 (23:21 +0000)]
We treat openbraces as normal.
This fixes Coverity bug #2
aland [Sat, 7 Apr 2007 22:50:40 +0000 (22:50 +0000)]
Border-line case where cache may be NULL...
This fixes Coverity bug #5
aland [Sat, 7 Apr 2007 22:47:11 +0000 (22:47 +0000)]
Don't de-reference NULL on exec
This fixes Coverity bug #7
aland [Sat, 7 Apr 2007 22:42:51 +0000 (22:42 +0000)]
If we failed to create a VP on OOM, exit from the loop.
This fixes Coverity bug #7.
aland [Sat, 7 Apr 2007 22:40:00 +0000 (22:40 +0000)]
Complain if we get an error reading the radutmp file.
This fixes Coverity bug #9
aland [Sat, 7 Apr 2007 22:34:55 +0000 (22:34 +0000)]
One-liner to quiet Coverity
This fixes Coverity bug #11
aland [Sat, 7 Apr 2007 22:32:37 +0000 (22:32 +0000)]
Should use (sizeof(array)/sizeof(array[0]) for looping over
the entries
This fixes Coverity bug #12
aland [Sat, 7 Apr 2007 22:28:17 +0000 (22:28 +0000)]
On continuation, die if the buffer is nearing full.
This fixes Coverity bug #13
aland [Sat, 7 Apr 2007 22:22:51 +0000 (22:22 +0000)]
call fclose() on error.
This fixes Coverity bug #15
aland [Sat, 7 Apr 2007 22:20:30 +0000 (22:20 +0000)]
free(c) on parse error
This fixes Coverity bug #17
aland [Sat, 7 Apr 2007 22:18:34 +0000 (22:18 +0000)]
free handler on OOM.
This fixes Coverity bug #22
aland [Sat, 7 Apr 2007 22:16:39 +0000 (22:16 +0000)]
free(inst) on OOM
This fixes Coverity bug #23
aland [Sat, 7 Apr 2007 22:14:51 +0000 (22:14 +0000)]
On failed open, free memory.
This fixs Coverity bug #24
aland [Sat, 7 Apr 2007 22:12:16 +0000 (22:12 +0000)]
free strdup'd memory on error.
This fixes Coverity bug #25
aland [Sat, 7 Apr 2007 22:06:08 +0000 (22:06 +0000)]
free(c) on error.
This fixes Coverity bug #26
aland [Sat, 7 Apr 2007 22:04:08 +0000 (22:04 +0000)]
free(c) on error.
This fixes Coverity bug #27
aland [Sat, 7 Apr 2007 22:01:10 +0000 (22:01 +0000)]
free(this) on error.
This fixes Coverity bug #28
aland [Sat, 7 Apr 2007 21:59:18 +0000 (21:59 +0000)]
If we've run out of memory, free(challenge), too.
Just to be pedantic.
This fixes Coverity bug #29
aland [Sat, 7 Apr 2007 21:49:32 +0000 (21:49 +0000)]
free(vp) on decoding error.
This fixes Coverity bug #32
aland [Sat, 7 Apr 2007 21:46:36 +0000 (21:46 +0000)]
free(newhash) on error.
This fixes Coverity bug #33
aland [Sat, 7 Apr 2007 21:41:38 +0000 (21:41 +0000)]
dict_init() && my_dict_init() require a non-NULL 'dir'.
This fixes Coverity bug #34
aland [Sat, 7 Apr 2007 21:35:44 +0000 (21:35 +0000)]
sql_poolfree dereferences inst->config, too. Move it to inside
the section that checks for inst->config.
This fixes Coverity bug #37
aland [Sat, 7 Apr 2007 21:32:11 +0000 (21:32 +0000)]
Move free of xlat_name into section that checks for inst->config
This fixes Coverity bug #38
aland [Sat, 7 Apr 2007 21:30:01 +0000 (21:30 +0000)]
Free dval on error reading the dictionary files, or on OOM.
This fixes Coverity bug #40
aland [Sat, 7 Apr 2007 21:27:19 +0000 (21:27 +0000)]
prev_eap_ds might be NULL. Check it, too.
Fixes Coverity bug #41
aland [Sat, 7 Apr 2007 15:15:25 +0000 (15:15 +0000)]
Documentation and examples for new templates feature
aland [Sat, 7 Apr 2007 14:54:14 +0000 (14:54 +0000)]
file dictionary.rfc4675 was added on branch branch_1_1 on 2007-04-08 06:34:10 +0000
aland [Sat, 7 Apr 2007 14:54:14 +0000 (14:54 +0000)]
Added another recent RFC
aland [Sat, 7 Apr 2007 14:47:34 +0000 (14:47 +0000)]
file dictionary.rfc4372 was added on branch branch_1_1 on 2007-04-08 06:34:10 +0000
aland [Sat, 7 Apr 2007 14:47:34 +0000 (14:47 +0000)]
New RADIUS dictionary
aland [Sat, 7 Apr 2007 14:25:12 +0000 (14:25 +0000)]
Add templates, which are taken from an idea by Arran Cudbard-Bell
using include files. This feature doesn't need include files,
and can drastically simplify complex repeated configurations
like home_servers
aland [Sat, 7 Apr 2007 11:12:05 +0000 (11:12 +0000)]
add "client-balance", which is load-balancing to home servers
by hashing the client source IP
aland [Sat, 7 Apr 2007 11:08:05 +0000 (11:08 +0000)]
Template for load-balance, etc. tests
aland [Sat, 7 Apr 2007 10:55:24 +0000 (10:55 +0000)]
work around CVS issues
nbk [Fri, 6 Apr 2007 10:12:16 +0000 (10:12 +0000)]
Add rlm_sql_firebird (author: Vitaly Bodzhgua) to CVS head, too.
aland [Thu, 5 Apr 2007 14:42:50 +0000 (14:42 +0000)]
Initial stab at an automated test harness for FreeRADIUS.
Right now, there are a limited number of tests, but the
infrastructure is there to do a lot more
aland [Thu, 5 Apr 2007 13:37:21 +0000 (13:37 +0000)]
casts, etc. to quiet compiler warnings
aland [Thu, 5 Apr 2007 12:27:32 +0000 (12:27 +0000)]
More casts to avoid -std=c99 warnings
aland [Thu, 5 Apr 2007 10:52:14 +0000 (10:52 +0000)]
Massively cleaned up #include's, so they're in a consistent
form. Most modules now need to include only radiusd.h && modules.h
Some of the EAP modules still need to be checked
nbk [Thu, 5 Apr 2007 10:16:30 +0000 (10:16 +0000)]
Regenerate from configure.in.
aland [Thu, 5 Apr 2007 10:00:47 +0000 (10:00 +0000)]
include <string.h> if necessary, too
aland [Thu, 5 Apr 2007 09:59:41 +0000 (09:59 +0000)]
Include missing.h from libradius.h
Do not include it from radiusd.h
Add more includes to missing.h, so everything it references
is defined in a header file it includes
Removed includes from libradius.h, as they're now in missing.h
nbk [Wed, 4 Apr 2007 09:23:57 +0000 (09:23 +0000)]
Add support for "./configure --without-docdir" which cancels
doc files installation instead of raising an error. This is
useful for the downstream distributions of FreeRADIUS.
nbk [Wed, 4 Apr 2007 09:22:21 +0000 (09:22 +0000)]
Add support for "./configure --without-docdir" which cancels
doc files installation instead of raising an error. This is
useful for the downstream distributions of FreeRADIUS.
nbk [Tue, 3 Apr 2007 14:41:06 +0000 (14:41 +0000)]
Include missing header "radius_snmp.h".
aland [Tue, 3 Apr 2007 13:25:58 +0000 (13:25 +0000)]
Massive change to the server core to remove horrid code in
request*.c, and move to an event-based system. Much better,
and somewhat tested
aland [Tue, 3 Apr 2007 08:13:18 +0000 (08:13 +0000)]
-I ..../libltdl
aland [Tue, 3 Apr 2007 08:12:25 +0000 (08:12 +0000)]
print one-line per-file summary, if asked
aland [Tue, 3 Apr 2007 08:11:02 +0000 (08:11 +0000)]
more sanity checks
aland [Tue, 3 Apr 2007 08:10:34 +0000 (08:10 +0000)]
corrected typo
nbk [Mon, 2 Apr 2007 14:51:53 +0000 (14:51 +0000)]
Fix compilation errors.
nbk [Mon, 2 Apr 2007 14:48:35 +0000 (14:48 +0000)]
Don't include the same header multiple times.
nbk [Mon, 2 Apr 2007 14:43:36 +0000 (14:43 +0000)]
The variable "rcsid" is defined twice.
nbk [Fri, 30 Mar 2007 13:47:05 +0000 (13:47 +0000)]
otppasswd.sample is no longer used.
aland [Tue, 27 Mar 2007 08:39:15 +0000 (08:39 +0000)]
use sizeof(), rather than hard-coded number
aland [Tue, 27 Mar 2007 08:35:26 +0000 (08:35 +0000)]
with strlcpy, we don't need an extra -1
aland [Mon, 26 Mar 2007 12:58:16 +0000 (12:58 +0000)]
Update version number
aland [Mon, 26 Mar 2007 09:49:19 +0000 (09:49 +0000)]
port fix from branch_1_1
aland [Mon, 26 Mar 2007 09:46:28 +0000 (09:46 +0000)]
corrected typo
aland [Mon, 26 Mar 2007 09:45:04 +0000 (09:45 +0000)]
close socket only if it's unconnected
nbk [Sun, 25 Mar 2007 21:44:00 +0000 (21:44 +0000)]
Compile the file sql_fbapi.c, too.
nbk [Wed, 21 Mar 2007 13:02:59 +0000 (13:02 +0000)]
The libpq manpage says the PGconn pointer should not be used
after PQfinish() has been called.
Bug found by Alexander V. Klepikov <klepikov_a@up.ua>
nbk [Wed, 21 Mar 2007 13:02:18 +0000 (13:02 +0000)]
The libpq manpage says the PGconn pointer should not be used
after PQfinish() has been called.
Bug found by Alexander V. Klepikov <klepikov_a@up.ua>
fcusack [Wed, 21 Mar 2007 07:44:56 +0000 (07:44 +0000)]
document removal of delete_blocked_requests
fcusack [Wed, 21 Mar 2007 07:22:38 +0000 (07:22 +0000)]
regenerate
fcusack [Wed, 21 Mar 2007 07:08:52 +0000 (07:08 +0000)]
re-apply ltdl.c#1.8:
Do a better job of freeing allocated memory
fcusack [Wed, 21 Mar 2007 07:05:27 +0000 (07:05 +0000)]
import from branch_1_1:
try_dlopen() has a bug: it sometimes returns a handle if a dependency
library can't be loaded. It also returns an error status, however
lt_dlopenext() doesn't handle this well and returns the invalid handle.
This causes a segfault instead of a graceful exit. Update ltdl to
give an error telling the user to report the problem, so that we can
try to reproduce it and report to the libtool folks. We could just
leave ltdl unpatched; FR will exit either way.
fcusack [Wed, 21 Mar 2007 07:04:11 +0000 (07:04 +0000)]
Shoot. ltdl.h#1.4 was not unmodified libltdl-1.5.22. Now it is.
fcusack [Wed, 21 Mar 2007 06:54:13 +0000 (06:54 +0000)]
import from branch_1_1:
update libtool and libltdl to 1.5.22, and improve the integration
by not requiring source modification (except for one change to
ltdl.c [for a bug] to follow)
Note that this reverses ltdl.c#1.8 but we will re-apply it. The
reason not to simply include it in this commit is so that all
the files here serve as a baseline of unmodified libtool/libltdl
sources, making it easier to update it in the future.
fcusack [Tue, 20 Mar 2007 07:10:30 +0000 (07:10 +0000)]
remove delete_blocked_requests option due to unsafe pthread_cancel()
fcusack [Tue, 20 Mar 2007 06:59:36 +0000 (06:59 +0000)]
lowercase URL
nbk [Mon, 19 Mar 2007 16:41:29 +0000 (16:41 +0000)]
Add libtool-ltdl-devel as a prerequisite for building.
nbk [Mon, 19 Mar 2007 16:41:05 +0000 (16:41 +0000)]
Add libtool-ltdl-devel as a prerequisite for building.
aland [Fri, 16 Mar 2007 13:22:03 +0000 (13:22 +0000)]
Use braces. This closes #429
aland [Fri, 16 Mar 2007 10:03:38 +0000 (10:03 +0000)]
be a little more forgiving about format
aland [Fri, 16 Mar 2007 09:58:11 +0000 (09:58 +0000)]
pass filenames via argv
aland [Wed, 14 Mar 2007 13:59:30 +0000 (13:59 +0000)]
Hmm.. why was this patch added?
aland [Wed, 14 Mar 2007 11:59:19 +0000 (11:59 +0000)]
With updates from the last release
aland [Wed, 14 Mar 2007 11:54:09 +0000 (11:54 +0000)]
From Chillispot's web site
aland [Mon, 12 Mar 2007 15:17:34 +0000 (15:17 +0000)]
We malloc(len + 1), so strlcpy(..., len + 1), rather than ... len
aland [Mon, 12 Mar 2007 15:15:24 +0000 (15:15 +0000)]
third argument to strlcpy is the size of the first argument, and
nevery anything else
aland [Mon, 12 Mar 2007 15:10:19 +0000 (15:10 +0000)]
strcpy doesn't need a '-1' in the sizeof
aland [Mon, 12 Mar 2007 12:40:20 +0000 (12:40 +0000)]
Initialize pd. Return 0 on error, rather than -1
aland [Mon, 12 Mar 2007 12:28:38 +0000 (12:28 +0000)]
port fix from cvs head
aland [Fri, 9 Mar 2007 14:14:57 +0000 (14:14 +0000)]
be a little more flexible in cf_section_parse_free
Print out more information when parsing sections with "name2"'s,
so that it's easier to tell what's going on.
nbk [Fri, 9 Mar 2007 13:34:37 +0000 (13:34 +0000)]
Newer version of rlm_sql_firebird, as posted to the list
by Vitaly Bodzhgua <vitaly@eastera.net>
nbk [Tue, 6 Mar 2007 23:30:33 +0000 (23:30 +0000)]
Update version number for 1.1.5 release.
aland [Mon, 5 Mar 2007 15:31:33 +0000 (15:31 +0000)]
More updates
aland [Mon, 5 Mar 2007 15:29:47 +0000 (15:29 +0000)]
In preparation for 1.1.5
aland [Mon, 5 Mar 2007 14:58:33 +0000 (14:58 +0000)]
This would be useful
aland [Mon, 5 Mar 2007 14:43:31 +0000 (14:43 +0000)]
Don't de-reference packet->vps if there's no packet.
Mostly a theoretical bug, as this is already checked elsewhere
Bug found by Coverity
aland [Mon, 5 Mar 2007 14:38:49 +0000 (14:38 +0000)]
Free packet on successful return, too.
Bug found by Coverity.
aland [Mon, 5 Mar 2007 14:34:55 +0000 (14:34 +0000)]
Free packet if the contents are badly formatted. This looks like
it only affects radeapclient.
Bug found by Coverity.
aland [Mon, 5 Mar 2007 14:30:04 +0000 (14:30 +0000)]
Free resources when using Exec-Program && Exec-Program-Wait
Bug found by Coverity.
aland [Mon, 5 Mar 2007 14:27:47 +0000 (14:27 +0000)]
Free clients on error. Mostly a theoretical bug, as the server
is exiting anyways...
Bug found by Coverity.
aland [Mon, 5 Mar 2007 14:26:11 +0000 (14:26 +0000)]
Free packet on error.
Bug found by Coverity.
aland [Mon, 5 Mar 2007 14:24:21 +0000 (14:24 +0000)]
Free packet if there was an allocation problem.
Mostly a theoretical bug
Bug found by Coverity
aland [Mon, 5 Mar 2007 14:22:04 +0000 (14:22 +0000)]
Catch a corner case where use of Exec-Program and Exec-Program-Wait
could cause memory leaks.
Bug found by Coverity