Module: kamailio
Branch: 5.1
Commit: f85f1033c5a30bc1b62758358da74254140de9f4
URL:
https://github.com/kamailio/kamailio/commit/f85f1033c5a30bc1b62758358da7425…
Author: Seudin Kasumovic <seudin.kasumovic(a)gmail.com>
Committer: Seudin Kasumovic <seudin.kasumovic(a)gmail.com>
Date: 2018-01-04T09:24:27+01:00
erlang: fix unreachable code
(cherry picked from commit c061d6688c505544aecfc39a43e8c60d48875790)
---
Modified: src/modules/erlang/handle_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f85f1033c5a30bc1b62758358da7425…
Patch:
https://github.com/kamailio/kamailio/commit/f85f1033c5a30bc1b62758358da7425…
---
diff --git a/src/modules/erlang/handle_rpc.c b/src/modules/erlang/handle_rpc.c
index fccec06680..5fe3c1f978 100644
--- a/src/modules/erlang/handle_rpc.c
+++ b/src/modules/erlang/handle_rpc.c
@@ -1418,15 +1418,13 @@ static int find_member(erl_rpc_ctx_t *ctx, int arity, const char*
member_name)
erl_rpc_fault(ctx,400,"Unexpected end of struct tuple");
goto error;
}
- continue;
+ i++;
}
else
{
/* return at current position */
return 0;
}
-
- i++;
}
erl_rpc_fault(ctx,400, "Member %s not found",member_name);