mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-12 10:06:58 +02:00
MINOR: map: Cleanup the initialisation of map descriptors.
The association between struct map_descriptor and its struct map_reference must be done in the function map_create_descriptor().
This commit is contained in:
parent
275db69c07
commit
a82d202af2
@ -168,6 +168,7 @@ static struct map_descriptor *map_create_descriptor(struct map_reference *ref,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
desc->conv = conv;
|
desc->conv = conv;
|
||||||
|
desc->ref = ref;
|
||||||
|
|
||||||
LIST_ADDQ(&ref->maps, &desc->list);
|
LIST_ADDQ(&ref->maps, &desc->list);
|
||||||
|
|
||||||
@ -366,7 +367,6 @@ static int sample_load_map(struct arg *arg, struct sample_conv *conv, char **err
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
desc->ref = ref;
|
|
||||||
pattern_init_expr(&desc->pat);
|
pattern_init_expr(&desc->pat);
|
||||||
|
|
||||||
/* set the match method */
|
/* set the match method */
|
||||||
|
Loading…
Reference in New Issue
Block a user