mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-28 01:47:18 +01:00
Fix crash if refrence entry not matched
This commit is contained in:
parent
008f828760
commit
1cae1fdbb7
1 changed files with 11 additions and 0 deletions
|
|
@ -2216,6 +2216,17 @@ static int get_key_check_param(DMPARAM_ARGS)
|
|||
char *full_param;
|
||||
char *value = "";
|
||||
|
||||
// Entry not found
|
||||
if (leaf == NULL) {
|
||||
dmctx->stop = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (DM_STRLEN(leaf->parameter) == 0) {
|
||||
dmctx->stop = true;
|
||||
return FAULT_9005;
|
||||
}
|
||||
|
||||
dmastrcat(&full_param, node->current_object, leaf->parameter);
|
||||
|
||||
if (dm_strcmp_wildcard(dmctx->in_param, full_param) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue