freeradius.git
17 years ago Pull fix for bug #436 from branch_1_1
aland [Sun, 8 Apr 2007 06:12:07 +0000 (06:12 +0000)]
Pull fix for bug #436 from branch_1_1

17 years ago Don't print errors if the error is zero.
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

17 years ago We treat openbraces as normal.
aland [Sat, 7 Apr 2007 23:21:42 +0000 (23:21 +0000)]
We treat openbraces as normal.

This fixes Coverity bug #2

17 years ago Border-line case where cache may be NULL...
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

17 years ago Don't de-reference NULL on exec
aland [Sat, 7 Apr 2007 22:47:11 +0000 (22:47 +0000)]
Don't de-reference NULL on exec

This fixes Coverity bug #7

17 years ago If we failed to create a VP on OOM, exit from the loop.
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.

17 years ago Complain if we get an error reading the radutmp file.
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

17 years ago One-liner to quiet Coverity
aland [Sat, 7 Apr 2007 22:34:55 +0000 (22:34 +0000)]
One-liner to quiet Coverity

This fixes Coverity bug #11

17 years ago Should use (sizeof(array)/sizeof(array[0]) for looping over
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

17 years ago On continuation, die if the buffer is nearing full.
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

17 years ago call fclose() on error.
aland [Sat, 7 Apr 2007 22:22:51 +0000 (22:22 +0000)]
call fclose() on error.

This fixes Coverity bug #15

17 years ago free(c) on parse error
aland [Sat, 7 Apr 2007 22:20:30 +0000 (22:20 +0000)]
free(c) on parse error

This fixes Coverity bug #17

17 years ago free handler on OOM.
aland [Sat, 7 Apr 2007 22:18:34 +0000 (22:18 +0000)]
free handler on OOM.

This fixes Coverity bug #22

17 years ago free(inst) on OOM
aland [Sat, 7 Apr 2007 22:16:39 +0000 (22:16 +0000)]
free(inst) on OOM

This fixes Coverity bug #23

17 years ago On failed open, free memory.
aland [Sat, 7 Apr 2007 22:14:51 +0000 (22:14 +0000)]
On failed open, free memory.

This fixs Coverity bug #24

17 years ago free strdup'd memory on error.
aland [Sat, 7 Apr 2007 22:12:16 +0000 (22:12 +0000)]
free strdup'd memory on error.

This fixes Coverity bug #25

17 years ago free(c) on error.
aland [Sat, 7 Apr 2007 22:06:08 +0000 (22:06 +0000)]
free(c) on error.

This fixes Coverity bug #26

17 years ago free(c) on error.
aland [Sat, 7 Apr 2007 22:04:08 +0000 (22:04 +0000)]
free(c) on error.

This fixes Coverity bug #27

17 years ago free(this) on error.
aland [Sat, 7 Apr 2007 22:01:10 +0000 (22:01 +0000)]
free(this) on error.

This fixes Coverity bug #28

17 years ago If we've run out of memory, free(challenge), too.
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

17 years ago free(vp) on decoding error.
aland [Sat, 7 Apr 2007 21:49:32 +0000 (21:49 +0000)]
free(vp) on decoding error.

This fixes Coverity bug #32

17 years ago free(newhash) on error.
aland [Sat, 7 Apr 2007 21:46:36 +0000 (21:46 +0000)]
free(newhash) on error.

This fixes Coverity bug #33

17 years ago dict_init() && my_dict_init() require a non-NULL 'dir'.
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

17 years ago sql_poolfree dereferences inst->config, too. Move it to inside
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

17 years ago Move free of xlat_name into section that checks for inst->config
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

17 years ago Free dval on error reading the dictionary files, or on OOM.
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

17 years ago prev_eap_ds might be NULL. Check it, too.
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

17 years ago Documentation and examples for new templates feature
aland [Sat, 7 Apr 2007 15:15:25 +0000 (15:15 +0000)]
Documentation and examples for new templates feature

17 years agofile 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)]
file dictionary.rfc4675 was added on branch branch_1_1 on 2007-04-08 06:34:10 +0000

17 years ago Added another recent RFC
aland [Sat, 7 Apr 2007 14:54:14 +0000 (14:54 +0000)]
Added another recent RFC

17 years agofile 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)]
file dictionary.rfc4372 was added on branch branch_1_1 on 2007-04-08 06:34:10 +0000

17 years ago New RADIUS dictionary
aland [Sat, 7 Apr 2007 14:47:34 +0000 (14:47 +0000)]
New RADIUS dictionary

17 years ago Add templates, which are taken from an idea by Arran Cudbard-Bell
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

17 years ago add "client-balance", which is load-balancing to 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

17 years ago Template for load-balance, etc. tests
aland [Sat, 7 Apr 2007 11:08:05 +0000 (11:08 +0000)]
Template for load-balance, etc. tests

17 years ago work around CVS issues
aland [Sat, 7 Apr 2007 10:55:24 +0000 (10:55 +0000)]
work around CVS issues

17 years ago Add rlm_sql_firebird (author: Vitaly Bodzhgua) to CVS head, too.
nbk [Fri, 6 Apr 2007 10:12:16 +0000 (10:12 +0000)]
Add rlm_sql_firebird (author: Vitaly Bodzhgua) to CVS head, too.

17 years ago Initial stab at an automated test harness for FreeRADIUS.
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

17 years ago casts, etc. to quiet compiler warnings
aland [Thu, 5 Apr 2007 13:37:21 +0000 (13:37 +0000)]
casts, etc. to quiet compiler warnings

17 years ago More casts to avoid -std=c99 warnings
aland [Thu, 5 Apr 2007 12:27:32 +0000 (12:27 +0000)]
More casts to avoid -std=c99 warnings

17 years ago Massively cleaned up #include's, so they're in a consistent
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

17 years ago Regenerate from configure.in.
nbk [Thu, 5 Apr 2007 10:16:30 +0000 (10:16 +0000)]
Regenerate from configure.in.

17 years ago include <string.h> if necessary, too
aland [Thu, 5 Apr 2007 10:00:47 +0000 (10:00 +0000)]
include <string.h> if necessary, too

17 years ago Include missing.h from libradius.h
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

17 years ago Add support for "./configure --without-docdir" which cancels
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.

17 years ago Add support for "./configure --without-docdir" which cancels
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.

17 years ago Include missing header "radius_snmp.h".
nbk [Tue, 3 Apr 2007 14:41:06 +0000 (14:41 +0000)]
Include missing header "radius_snmp.h".

17 years ago Massive change to the server core to remove horrid code in
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

17 years ago -I ..../libltdl
aland [Tue, 3 Apr 2007 08:13:18 +0000 (08:13 +0000)]
-I ..../libltdl

17 years ago print one-line per-file summary, if asked
aland [Tue, 3 Apr 2007 08:12:25 +0000 (08:12 +0000)]
print one-line per-file summary, if asked

17 years ago more sanity checks
aland [Tue, 3 Apr 2007 08:11:02 +0000 (08:11 +0000)]
more sanity checks

17 years ago corrected typo
aland [Tue, 3 Apr 2007 08:10:34 +0000 (08:10 +0000)]
corrected typo

17 years ago Fix compilation errors.
nbk [Mon, 2 Apr 2007 14:51:53 +0000 (14:51 +0000)]
Fix compilation errors.

17 years ago Don't include the same header multiple times.
nbk [Mon, 2 Apr 2007 14:48:35 +0000 (14:48 +0000)]
Don't include the same header multiple times.

17 years ago The variable "rcsid" is defined twice.
nbk [Mon, 2 Apr 2007 14:43:36 +0000 (14:43 +0000)]
The variable "rcsid" is defined twice.

17 years ago otppasswd.sample is no longer used.
nbk [Fri, 30 Mar 2007 13:47:05 +0000 (13:47 +0000)]
otppasswd.sample is no longer used.

17 years ago use sizeof(), rather than hard-coded number
aland [Tue, 27 Mar 2007 08:39:15 +0000 (08:39 +0000)]
use sizeof(), rather than hard-coded number

17 years ago with strlcpy, we don't need an extra -1
aland [Tue, 27 Mar 2007 08:35:26 +0000 (08:35 +0000)]
with strlcpy, we don't need an extra -1

17 years ago Update version number
aland [Mon, 26 Mar 2007 12:58:16 +0000 (12:58 +0000)]
Update version number

17 years ago port fix from branch_1_1
aland [Mon, 26 Mar 2007 09:49:19 +0000 (09:49 +0000)]
port fix from branch_1_1

17 years ago corrected typo
aland [Mon, 26 Mar 2007 09:46:28 +0000 (09:46 +0000)]
corrected typo

17 years ago close socket only if it's unconnected
aland [Mon, 26 Mar 2007 09:45:04 +0000 (09:45 +0000)]
close socket only if it's unconnected

17 years ago Compile the file sql_fbapi.c, too.
nbk [Sun, 25 Mar 2007 21:44:00 +0000 (21:44 +0000)]
Compile the file sql_fbapi.c, too.

17 years ago The libpq manpage says the PGconn pointer should not be used
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>

17 years ago The libpq manpage says the PGconn pointer should not be used
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>

17 years ago document removal of delete_blocked_requests
fcusack [Wed, 21 Mar 2007 07:44:56 +0000 (07:44 +0000)]
document removal of delete_blocked_requests

17 years ago regenerate
fcusack [Wed, 21 Mar 2007 07:22:38 +0000 (07:22 +0000)]
regenerate

17 years ago re-apply ltdl.c#1.8:
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

17 years agoimport from branch_1_1:
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.

17 years ago Shoot. ltdl.h#1.4 was not unmodified libltdl-1.5.22. Now it is.
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.

17 years agoimport from branch_1_1:
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.

17 years ago remove delete_blocked_requests option due to unsafe pthread_cancel()
fcusack [Tue, 20 Mar 2007 07:10:30 +0000 (07:10 +0000)]
remove delete_blocked_requests option due to unsafe pthread_cancel()

17 years ago lowercase URL
fcusack [Tue, 20 Mar 2007 06:59:36 +0000 (06:59 +0000)]
lowercase URL

17 years ago Add libtool-ltdl-devel as a prerequisite for building.
nbk [Mon, 19 Mar 2007 16:41:29 +0000 (16:41 +0000)]
Add libtool-ltdl-devel as a prerequisite for building.

17 years ago 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.

17 years ago Use braces. This closes #429
aland [Fri, 16 Mar 2007 13:22:03 +0000 (13:22 +0000)]
Use braces.  This closes #429

17 years ago be a little more forgiving about format
aland [Fri, 16 Mar 2007 10:03:38 +0000 (10:03 +0000)]
be a little more forgiving about format

17 years ago pass filenames via argv
aland [Fri, 16 Mar 2007 09:58:11 +0000 (09:58 +0000)]
pass filenames via argv

17 years ago Hmm.. why was this patch added?
aland [Wed, 14 Mar 2007 13:59:30 +0000 (13:59 +0000)]
Hmm.. why was this patch added?

17 years ago With updates from the last release
aland [Wed, 14 Mar 2007 11:59:19 +0000 (11:59 +0000)]
With updates from the last release

17 years ago From Chillispot's web site
aland [Wed, 14 Mar 2007 11:54:09 +0000 (11:54 +0000)]
From Chillispot's web site

17 years ago We malloc(len + 1), so strlcpy(..., len + 1), rather than ... len
aland [Mon, 12 Mar 2007 15:17:34 +0000 (15:17 +0000)]
We malloc(len + 1), so strlcpy(..., len + 1), rather than ... len

17 years ago third argument to strlcpy is the size of the first argument, and
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

17 years ago strcpy doesn't need a '-1' in the sizeof
aland [Mon, 12 Mar 2007 15:10:19 +0000 (15:10 +0000)]
strcpy doesn't need a '-1' in the sizeof

17 years ago Initialize pd. Return 0 on error, rather than -1
aland [Mon, 12 Mar 2007 12:40:20 +0000 (12:40 +0000)]
Initialize pd.  Return 0 on error, rather than -1

17 years ago port fix from cvs head
aland [Mon, 12 Mar 2007 12:28:38 +0000 (12:28 +0000)]
port fix from cvs head

17 years ago be a little more flexible in cf_section_parse_free
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.

17 years ago Newer version of rlm_sql_firebird, as posted to the list
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>

17 years agoUpdate version number for 1.1.5 release.
nbk [Tue, 6 Mar 2007 23:30:33 +0000 (23:30 +0000)]
Update version number for 1.1.5 release.

17 years ago More updates release_1_1_5
aland [Mon, 5 Mar 2007 15:31:33 +0000 (15:31 +0000)]
More updates

17 years ago In preparation for 1.1.5
aland [Mon, 5 Mar 2007 15:29:47 +0000 (15:29 +0000)]
In preparation for 1.1.5

17 years ago This would be useful
aland [Mon, 5 Mar 2007 14:58:33 +0000 (14:58 +0000)]
This would be useful

17 years ago Don't de-reference packet->vps if there's no packet.
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

17 years ago Free packet on successful return, too.
aland [Mon, 5 Mar 2007 14:38:49 +0000 (14:38 +0000)]
Free packet on successful return, too.

Bug found by Coverity.

17 years ago Free packet if the contents are badly formatted. This looks like
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.

17 years ago Free resources when using Exec-Program && Exec-Program-Wait
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.

17 years ago Free clients on error. Mostly a theoretical bug, as the server
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.

17 years ago Free packet on error.
aland [Mon, 5 Mar 2007 14:26:11 +0000 (14:26 +0000)]
Free packet on error.

Bug found by Coverity.

17 years ago Free packet if there was an allocation problem.
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

17 years ago Catch a corner case where use of Exec-Program and Exec-Program-Wait
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