Skip to content

Commit

Permalink
usrloc: Fix matching_mode regression in 3aae7e6
Browse files Browse the repository at this point in the history
Commit 3aae7e6 did too many things at once, including the refactoring
of CT_MATCH_NONE from -1 to 0 (along with all other enum members!),
causing a mismatch of this module parameter with its documentation, and
leading to failed startup checks under ul_init_globals().

Credits to @98oi98 for the report!

Fixes #2337

(cherry picked from commit dc8cfe8)
  • Loading branch information
liviuchircu committed Dec 9, 2020
1 parent f623b9e commit 50a794c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/usrloc/ucontact.h
Expand Up @@ -86,7 +86,7 @@ typedef uint64_t ucontact_id;

struct ct_match {
enum {
CT_MATCH_NONE,
CT_MATCH_NONE=-1,
CT_MATCH_CONTACT_ONLY,
CT_MATCH_CONTACT_CALLID,
CT_MATCH_PARAMS,
Expand Down

0 comments on commit 50a794c

Please sign in to comment.