]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Set *err to -2 when the list isn't found in tmp_dcursor_init() (#4571)
authorJames Jones <jejones3141@gmail.com>
Wed, 22 Jun 2022 21:09:20 +0000 (16:09 -0500)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 21:09:20 +0000 (16:09 -0500)
commitf0e1e00bd3d094d4971395331e8d40b7ae47583a
treed767a9e2ec8ce2de01c9acc012f5f9999ca56763
parent4ac945626a0b3dddd65b609c8b5049ffffe77e7c
Set *err to -2 when the list isn't found in tmp_dcursor_init() (#4571)

This change honors the comments describing how err is handled, and
also means, given tmpl_find_vp()'s use of tmpl_dcursor_init(),
means callers of tmpl_find_vp() can check its return value
rather than having to look at the written vp (e.g. sometimes_return();
see CID #1503995).
src/lib/server/tmpl_dcursor.c