diff options
-rw-r--r-- | src/tools/irm/irm_register.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tools/irm/irm_register.c b/src/tools/irm/irm_register.c index 23c65f7d..ca15abcf 100644 --- a/src/tools/irm/irm_register.c +++ b/src/tools/irm/irm_register.c @@ -113,21 +113,19 @@ int do_register(int argc, for (i = 0; i < len; ++i) { size_t j; for (j = 0; j < layers_len; j++) { - if (wildcard_match(ipcps[i].layer, layers[j]) == 0) { + if (wildcard_match(layers[j], ipcps[i].layer) == 0) { if (irm_reg(ipcps[i].pid, name)) { free(ipcps); return -1; } - break; } } for (j = 0; j < ipcp_len; j++) { - if (wildcard_match(ipcps[i].name, ipcp[j]) == 0) { + if (wildcard_match(ipcp[j], ipcps[i].name) == 0) { if (irm_reg(ipcps[i].pid, name)) { free(ipcps); return -1; } - break; } } } |