]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
4 years agoreturn actual offset, not bumped up by 1
Alan T. DeKok [Tue, 17 May 2022 13:19:52 +0000 (09:19 -0400)] 
return actual offset, not bumped up by 1

4 years agoclose on error. Fixes #4518
Alan T. DeKok [Tue, 17 May 2022 13:19:33 +0000 (09:19 -0400)] 
close on error.  Fixes #4518

4 years agoclose on error. Fixes #4518
Alan T. DeKok [Tue, 17 May 2022 13:19:16 +0000 (09:19 -0400)] 
close on error. Fixes #4518

4 years agolog: Fix fr_log_close() 'dst' check
Jorge Pereira [Tue, 26 Apr 2022 23:46:44 +0000 (20:46 -0300)] 
log: Fix fr_log_close() 'dst' check

4 years agolog: Fix fr_log_init_file() 'fd' set
Jorge Pereira [Tue, 26 Apr 2022 23:36:14 +0000 (20:36 -0300)] 
log: Fix fr_log_init_file() 'fd' set

4 years agoEnsure module loading errors are printed out
Nick Porter [Tue, 17 May 2022 07:47:04 +0000 (08:47 +0100)] 
Ensure module loading errors are printed out

4 years agoadd MEM. CID #1504430
Alan T. DeKok [Mon, 16 May 2022 21:13:06 +0000 (17:13 -0400)] 
add MEM.  CID #1504430

4 years agotypo
Alan T. DeKok [Sat, 14 May 2022 17:31:44 +0000 (13:31 -0400)] 
typo

4 years agoshut up clang scan
Alan T. DeKok [Sat, 14 May 2022 12:46:50 +0000 (08:46 -0400)] 
shut up clang scan

4 years agodon't free too much
Alan T. DeKok [Fri, 13 May 2022 21:48:39 +0000 (17:48 -0400)] 
don't free too much

4 years agomove xlats to dlists.
Alan T. DeKok [Fri, 13 May 2022 18:31:08 +0000 (14:31 -0400)] 
move xlats to dlists.

4 years agoclean up in preparation for moving to lists
Alan T. DeKok [Thu, 12 May 2022 18:20:01 +0000 (14:20 -0400)] 
clean up in preparation for moving to lists

4 years agoclean up so that there's less magic.
Alan T. DeKok [Thu, 12 May 2022 18:01:52 +0000 (14:01 -0400)] 
clean up so that there's less magic.

4 years agoremove flags from xlat expr tokenize functions.
Alan T. DeKok [Thu, 12 May 2022 17:34:54 +0000 (13:34 -0400)] 
remove flags from xlat expr tokenize functions.

4 years agosanity check for flags
Alan T. DeKok [Thu, 12 May 2022 02:09:13 +0000 (22:09 -0400)] 
sanity check for flags

the caller should't set run-time flags.

4 years agoremove flags from xlat tokenize functions.
Alan T. DeKok [Thu, 12 May 2022 01:58:40 +0000 (21:58 -0400)] 
remove flags from xlat tokenize functions.

The flags are now only used for xlat registrations.

4 years agostart of API cleanup
Alan T. DeKok [Thu, 12 May 2022 01:38:18 +0000 (21:38 -0400)] 
start of API cleanup

4 years agominor clarifications
Alan T. DeKok [Thu, 12 May 2022 01:34:40 +0000 (21:34 -0400)] 
minor clarifications

4 years agoxlat tokenize functions now only need head
Alan T. DeKok [Thu, 12 May 2022 01:07:19 +0000 (21:07 -0400)] 
xlat tokenize functions now only need head

not ctx, out, and flags

4 years agoset flags correctly.
Alan T. DeKok [Thu, 12 May 2022 00:37:52 +0000 (20:37 -0400)] 
set flags correctly.

it's probably easier to do this correctly if we have a better API

4 years agoxlat_resolve() no longer needs flags
Alan T. DeKok [Thu, 12 May 2022 00:50:53 +0000 (20:50 -0400)] 
xlat_resolve() no longer needs flags

4 years agoensiure that xlat_resolve() can always be passed NULL flags
Alan T. DeKok [Wed, 11 May 2022 14:12:30 +0000 (10:12 -0400)] 
ensiure that xlat_resolve() can always be passed NULL flags

4 years agono need to pass flags here
Alan T. DeKok [Wed, 11 May 2022 13:55:16 +0000 (09:55 -0400)] 
no need to pass flags here

4 years agoremove xlat flags from tmpl structure
Alan T. DeKok [Wed, 11 May 2022 02:22:12 +0000 (22:22 -0400)] 
remove xlat flags from tmpl structure

4 years agostart of removing xlat_flags_t from tmpl
Alan T. DeKok [Wed, 11 May 2022 02:16:54 +0000 (22:16 -0400)] 
start of removing xlat_flags_t from tmpl

sometimes go a bit sideways to make progress.

4 years agoremove flags from xlat some functions.
Alan T. DeKok [Tue, 10 May 2022 21:24:31 +0000 (17:24 -0400)] 
remove flags from xlat some functions.

expose an API to get at the few flags which are needed.
move tmpls to use the API

4 years agoset head flags, too
Alan T. DeKok [Wed, 11 May 2022 02:01:02 +0000 (22:01 -0400)] 
set head flags, too

4 years agoschedule: Fix potential memory-leak (#4510)
Jorge Pereira [Mon, 16 May 2022 18:59:48 +0000 (15:59 -0300)] 
schedule: Fix potential memory-leak (#4510)

4 years agoCheck fr_value_box_from_network(), fr_value_box_cast() returns (CID #1469115, #150393...
James Jones [Mon, 16 May 2022 16:54:37 +0000 (11:54 -0500)] 
Check fr_value_box_from_network(), fr_value_box_cast() returns (CID #1469115, #1503931) (#4514)

4 years agore-add flags removed erroneously
Alan T. DeKok [Mon, 16 May 2022 16:40:25 +0000 (12:40 -0400)] 
re-add flags removed erroneously

4 years agoAdd explicit paths for OSX
Alan T. DeKok [Sun, 15 May 2022 14:09:41 +0000 (10:09 -0400)] 
Add explicit paths for OSX

because apparently some of the C compilers aren't built with the
default paths for everything on the system.

4 years agofix up for OSX
Alan T. DeKok [Sat, 14 May 2022 17:37:32 +0000 (13:37 -0400)] 
fix up for OSX

newer versions of clang can't find things.  So we need to manually
add the paths in.

4 years agoCatch invalid status values in tls_cache_session_ticket_app_data_get (#4509)
James Jones [Fri, 13 May 2022 21:30:56 +0000 (16:30 -0500)] 
Catch invalid status values in tls_cache_session_ticket_app_data_get (#4509)

4 years agoMake load_noinstall_path() free what it doesn't return (CID #1504304) (#4500)
James Jones [Fri, 13 May 2022 21:29:49 +0000 (16:29 -0500)] 
Make load_noinstall_path() free what it doesn't return (CID #1504304) (#4500)

4 years agov4: Changes needed for fr_pair_list_..._by_da macros (#4508)
Nick Porter [Fri, 13 May 2022 21:26:54 +0000 (22:26 +0100)] 
v4: Changes needed for fr_pair_list_..._by_da macros (#4508)

4 years agoAdd checks of fr_lst_insert() calls (CID #1503950, #1504014) (#4512)
James Jones [Fri, 13 May 2022 21:25:13 +0000 (16:25 -0500)] 
Add checks of fr_lst_insert() calls (CID #1503950, #1504014) (#4512)

4 years agoCheck fr_minmax_heap_alloc() return value (CID #1504069) (#4513)
James Jones [Fri, 13 May 2022 21:24:40 +0000 (16:24 -0500)] 
Check fr_minmax_heap_alloc() return value (CID #1504069) (#4513)

4 years agoDefine macros for adding a pair to a list and assinging its value (#4507)
Nick Porter [Thu, 12 May 2022 15:52:39 +0000 (16:52 +0100)] 
Define macros for adding a pair to a list and assinging its value (#4507)

4 years agoJust adjust ext when removing "mod_" (CID #1504300) (#4506)
James Jones [Thu, 12 May 2022 14:03:46 +0000 (09:03 -0500)] 
Just adjust ext when removing "mod_" (CID #1504300) (#4506)

One need only adjust ext by 4 when, in truncate_dll_name(), one
removes "mod_". Then if len exceeds 8 ext still points at the
extension, and coverity can't kvetch about not checking the value
strchr() returns (Using strchr() the second time means
"mumblefrotz.foo.dll" won't behave as expected; does that ever
turn up in practice?)

4 years agoSwitch to memmove() for truncate_dll_name() (CID #1504298) (#4495)
James Jones [Thu, 12 May 2022 02:47:55 +0000 (21:47 -0500)] 
Switch to memmove() for truncate_dll_name() (CID #1504298) (#4495)

with overlapping src/dest, strcpy() gives undefined behavior

4 years agoRemove the needless done_init variables from tests (#4505)
James Jones [Thu, 12 May 2022 02:47:39 +0000 (21:47 -0500)] 
Remove the needless done_init variables from tests (#4505)

This change should settle CIDs 1504383-150439, making clear to
Coverity that rand_ctx is indeed initialized.

4 years agoUse fr_fast_rand() to select operation in burn-in (CID #1503935, #1504015) (#4503)
James Jones [Wed, 11 May 2022 21:06:40 +0000 (16:06 -0500)] 
Use fr_fast_rand() to select operation in burn-in (CID #1503935, #1504015) (#4503)

4 years agoConvert tests to use fr_fast_rand() rather than srand()/rand() (#4502)
James Jones [Wed, 11 May 2022 17:34:27 +0000 (12:34 -0500)] 
Convert tests to use fr_fast_rand() rather than srand()/rand() (#4502)

Coverity considers rand() risky, but data structure tests don't
require cryptographically secure pseudorandom numbers. This should
take care of CIDs 14691201469179150392715039351503941,
15039671503977150399015040151504048, and 1504054.

4 years agoCheck value returned by fr_pair_value_mem_alloc() (CID #1503929) (#4498)
James Jones [Mon, 9 May 2022 21:38:44 +0000 (16:38 -0500)] 
Check value returned by fr_pair_value_mem_alloc() (CID #1503929) (#4498)

4 years agoCorrect MEM() check of fr_pair_value_mem_alloc() return value (#4497)
James Jones [Mon, 9 May 2022 21:38:14 +0000 (16:38 -0500)] 
Correct MEM() check of fr_pair_value_mem_alloc() return value (#4497)

4 years agoMake python configure script check that it can actually link to the python libraries
Arran Cudbard-Bell [Thu, 5 May 2022 22:27:54 +0000 (00:27 +0200)] 
Make python configure script check that it can actually link to the python libraries

4 years agoFix atomic queue alignment on 32bit systems
Arran Cudbard-Bell [Thu, 5 May 2022 22:27:21 +0000 (00:27 +0200)] 
Fix atomic queue alignment on 32bit systems

4 years agostderr and stdout are macros and conflict with these fields
Arran Cudbard-Bell [Thu, 5 May 2022 22:27:05 +0000 (00:27 +0200)] 
stderr and stdout are macros and conflict with these fields

4 years agoAllow building without semaphores
Arran Cudbard-Bell [Thu, 5 May 2022 14:14:50 +0000 (16:14 +0200)] 
Allow building without semaphores

4 years agoBuild build system libraries with HOST_CC
Arran Cudbard-Bell [Thu, 5 May 2022 12:55:03 +0000 (14:55 +0200)] 
Build build system libraries with HOST_CC

4 years agoPrint out canonical target names and add "darwin"
Arran Cudbard-Bell [Thu, 5 May 2022 12:17:00 +0000 (14:17 +0200)] 
Print out canonical target names and add "darwin"

4 years agoAllow toolset to be set explicitly
Arran Cudbard-Bell [Thu, 5 May 2022 10:39:37 +0000 (12:39 +0200)] 
Allow toolset to be set explicitly

4 years agoremove unused variable
Alan T. DeKok [Sat, 7 May 2022 13:42:35 +0000 (09:42 -0400)] 
remove unused variable

4 years agominor cleanups
Alan T. DeKok [Sat, 7 May 2022 13:40:52 +0000 (09:40 -0400)] 
minor cleanups

4 years agoadd "ignore this list" entries.
Alan T. DeKok [Sat, 7 May 2022 12:19:49 +0000 (08:19 -0400)] 
add "ignore this list" entries.

If we're inserting a new structural member, then we don't need
to undo edits to any children in it's lists.  Those edits will be
undone automatically when the parent pair is undone.

We keep a separate list of "lists to ignore", and check that
before doing anything.  If the list can be ignored, then we
discard delete / clear / etc.

In inserts, if the VP is structural, then remember its child list,
so that we can ignore edits to it, too.

4 years agorename, as there are too many "list" things here.
Alan T. DeKok [Sat, 7 May 2022 12:08:39 +0000 (08:08 -0400)] 
rename, as there are too many "list" things here.

4 years agoRemove initial FR_TYPE_NULL check from fr_value_box_from_substr() (CID #1504016)...
James Jones [Sat, 7 May 2022 01:26:16 +0000 (20:26 -0500)] 
Remove initial FR_TYPE_NULL check from fr_value_box_from_substr() (CID #1504016) (#4496)

Better to let it be handled in the switch statement.

4 years agoFree result of file_name_stripped() when needed (CID #1504303) (#4494)
James Jones [Fri, 6 May 2022 17:36:26 +0000 (12:36 -0500)] 
Free result of file_name_stripped() when needed (CID #1504303) (#4494)

4 years agofr_strerror_clear() needn't bother with fr_strerror_init() (CID #1503892) (#4486)
James Jones [Thu, 5 May 2022 21:56:46 +0000 (16:56 -0500)] 
fr_strerror_clear() needn't bother with fr_strerror_init() (CID #1503892) (#4486)

fr_strerror_clear() already refers to fr_strerror_buffer, and might as
well use it rather than the return value from fr_sterror_init().

4 years agoMove use of out after check for NULL (CID #1503900) (#4482)
James Jones [Thu, 5 May 2022 21:55:00 +0000 (16:55 -0500)] 
Move use of out after check for NULL (CID #1503900) (#4482)

4 years agoWrap malloc() in MEM() to reassure coverity (CID #1469117) (#4485)
James Jones [Thu, 5 May 2022 21:54:42 +0000 (16:54 -0500)] 
Wrap malloc() in MEM() to reassure coverity (CID #1469117) (#4485)

4 years agoAdd check for NULL from fr_value_box_alloc_null() (CID #1469164) (#4487)
James Jones [Thu, 5 May 2022 21:54:22 +0000 (16:54 -0500)] 
Add check for NULL from fr_value_box_alloc_null() (CID #1469164) (#4487)

4 years agoAdd another check of fr_event_fd_insert() for trunk tests (CID #1469165) (#4492)
James Jones [Thu, 5 May 2022 21:53:54 +0000 (16:53 -0500)] 
Add another check of fr_event_fd_insert() for trunk tests (CID #1469165) (#4492)

4 years agoCorrect memory leak in add_dynlink_noinstall (CID #1504301, #1504306) (#4493)
James Jones [Thu, 5 May 2022 21:53:40 +0000 (16:53 -0500)] 
Correct memory leak in add_dynlink_noinstall (CID #1504301, #1504306) (#4493)

The single check for either install_path or current_path being NULL
will leak if it passes; load_noinstall_path() doesn't have an explicit
return NULL and lt_malloc() exits if malloc() returns NULL, so
current_path is guaranteed non-NULL if load_noinstall_path() returns.
To avoid the issue, check install_path immediately after it's set.

(If coverity doesn't recognize that current_path will never be NULL,
it may need MEM().)

At the end of add_dynlink_noinstall(), both are freed.

4 years agorename variables to something which makes sense
Alan T. DeKok [Thu, 5 May 2022 12:57:38 +0000 (14:57 +0200)] 
rename variables to something which makes sense

4 years agoRemove needless check for FR_TYPE_NULL (CID #1503975) (#4488)
James Jones [Thu, 5 May 2022 12:52:12 +0000 (07:52 -0500)] 
Remove needless check for FR_TYPE_NULL (CID #1503975) (#4488)

4 years agoset target-specific C compiler via SRC_CC
Alan T. DeKok [Thu, 5 May 2022 12:47:05 +0000 (14:47 +0200)] 
set target-specific C compiler via SRC_CC

which should usually be $(COMPILE.c)

4 years agoMore minor jlibtool fixes
Arran Cudbard-Bell [Thu, 5 May 2022 10:21:20 +0000 (12:21 +0200)] 
More minor jlibtool fixes

4 years agoPass through our compiler and ranlib defs when building jlibtool
Arran Cudbard-Bell [Thu, 5 May 2022 09:50:46 +0000 (11:50 +0200)] 
Pass through our compiler and ranlib defs when building jlibtool

4 years agoprctrl definitel isn't posix
Arran Cudbard-Bell [Thu, 5 May 2022 09:36:59 +0000 (11:36 +0200)] 
prctrl definitel isn't posix

4 years agoLIBRARY_EXT is really TARGET_LIBRARY_EXT which isn't what we want
Arran Cudbard-Bell [Thu, 5 May 2022 09:36:13 +0000 (11:36 +0200)] 
LIBRARY_EXT is really TARGET_LIBRARY_EXT which isn't what we want

4 years agoSet HOST_CC TARGET_CC HOST_RANLIB TARGET_RANLIB from their respective environmental...
Arran Cudbard-Bell [Thu, 5 May 2022 09:35:36 +0000 (11:35 +0200)] 
Set HOST_CC TARGET_CC HOST_RANLIB TARGET_RANLIB from their respective environmental variables

4 years agoIf the target is empty or set to "default" just use the host target
Arran Cudbard-Bell [Thu, 5 May 2022 09:26:34 +0000 (11:26 +0200)] 
If the target is empty or set to "default" just use the host target

This makes it a little easier in the build framework

4 years agoDon't build semaphore code under emscripten, it's not available
Arran Cudbard-Bell [Thu, 5 May 2022 09:14:25 +0000 (11:14 +0200)] 
Don't build semaphore code under emscripten, it's not available

4 years agoDo partial target matching in jlibtool
Arran Cudbard-Bell [Wed, 4 May 2022 23:41:34 +0000 (01:41 +0200)] 
Do partial target matching in jlibtool

4 years agoTypo
Arran Cudbard-Bell [Wed, 4 May 2022 13:48:48 +0000 (15:48 +0200)] 
Typo

4 years agoAvoid spurious output
Arran Cudbard-Bell [Wed, 4 May 2022 12:25:22 +0000 (14:25 +0200)] 
Avoid spurious output

4 years agoFixup jlibtool to allow crosscompilation without needing multiple versions of the...
Arran Cudbard-Bell [Wed, 4 May 2022 12:00:04 +0000 (14:00 +0200)] 
Fixup jlibtool to allow crosscompilation without needing multiple versions of the binary

4 years agoControl verbose flag passed to jlibtool
Arran Cudbard-Bell [Wed, 4 May 2022 10:14:08 +0000 (12:14 +0200)] 
Control verbose flag passed to jlibtool

4 years agoprint out build for jlibtool, etc.
Alan T. DeKok [Tue, 3 May 2022 13:27:57 +0000 (15:27 +0200)] 
print out build for jlibtool, etc.

4 years agoadd "counter" flag for unsigned integers.
Alan T. DeKok [Tue, 3 May 2022 12:20:28 +0000 (14:20 +0200)] 
add "counter" flag for unsigned integers.

to enable more SNMP, and internal stats, along with automatic
aggregation of stats.

4 years agoshow more structs
Alan T. DeKok [Tue, 3 May 2022 12:18:18 +0000 (14:18 +0200)] 
show more structs

4 years agoRevert "Fixup jlibtool to allow crosscompilation without needing multiple versions...
Arran Cudbard-Bell [Tue, 3 May 2022 07:52:24 +0000 (09:52 +0200)] 
Revert "Fixup jlibtool to allow crosscompilation without needing multiple versions of the binary"

This reverts commit 83892e9c37da2de186afdc775e6438b02d5a35ad.

4 years agoexport VERBOSE
Alan T. DeKok [Tue, 3 May 2022 07:26:32 +0000 (09:26 +0200)] 
export VERBOSE

4 years agoFreeBSD uses the .so extension too
Arran Cudbard-Bell [Mon, 2 May 2022 12:55:19 +0000 (14:55 +0200)] 
FreeBSD uses the .so extension too

4 years agoFixup jlibtool to allow crosscompilation without needing multiple versions of the...
Arran Cudbard-Bell [Thu, 28 Apr 2022 18:20:12 +0000 (13:20 -0500)] 
Fixup jlibtool to allow crosscompilation without needing multiple versions of the binary

4 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Mon, 2 May 2022 09:54:04 +0000 (09:54 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

4 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Mon, 2 May 2022 09:54:01 +0000 (09:54 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

4 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Mon, 2 May 2022 09:53:57 +0000 (09:53 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

4 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Mon, 2 May 2022 09:53:55 +0000 (09:53 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

4 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Mon, 2 May 2022 09:53:52 +0000 (09:53 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

4 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Mon, 2 May 2022 09:53:48 +0000 (09:53 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

4 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Mon, 2 May 2022 09:53:46 +0000 (09:53 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

4 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Mon, 2 May 2022 09:53:43 +0000 (09:53 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

4 years agoMake minmax_heap_burn_in() exercise all operations (CID #1503996) (#4478)
James Jones [Fri, 29 Apr 2022 19:16:56 +0000 (14:16 -0500)] 
Make minmax_heap_burn_in() exercise all operations (CID #1503996) (#4478)

random choice of operation wasn't hitting all cases

4 years agoMove assignment out of fr_assert_msg() to pacify Coverity (CID #1504180) (#4479)
James Jones [Fri, 29 Apr 2022 19:16:37 +0000 (14:16 -0500)] 
Move assignment out of fr_assert_msg() to pacify Coverity (CID #1504180) (#4479)

4 years agoremove needless check of parent in parse_input() (CID #1469153 (#4480)
James Jones [Fri, 29 Apr 2022 19:15:36 +0000 (14:15 -0500)] 
remove needless check of parent in parse_input() (CID #1469153 (#4480)

Earlier in the code, parent->allow_unlang is tested; if parent
is NULL, it will break thre, so the later check is unnecessary.

4 years agoMove use of name after NULL check in dict_by_protocol_substr (CID #1503920) (#4481)
James Jones [Fri, 29 Apr 2022 19:14:50 +0000 (14:14 -0500)] 
Move use of name after NULL check in dict_by_protocol_substr (CID #1503920) (#4481)

4 years agoRemove needless NULL checks in cf_pair_parse_internal() (CID #1469127, #1469144)...
James Jones [Fri, 29 Apr 2022 12:34:30 +0000 (07:34 -0500)] 
Remove needless NULL checks in cf_pair_parse_internal() (CID #1469127, #1469144) (#4476)

array is checked for NULL, and an error returned if it is, before
the loop that fills the array, so the checks of it in the loop (and
also of entry, which can't be NULL either).

4 years agoQuiet coverity (CID #1503969, #1504008) (#4475)
James Jones [Fri, 29 Apr 2022 12:34:07 +0000 (07:34 -0500)] 
Quiet coverity (CID #1503969, #1504008) (#4475)

timestr_match() converts time from the beginning of the week in
a struct tm to minutes. Coverity doesn't consider the bounds
on those values (tm_wday and tm_hour), and thus warns of possible
overflow.