Module: kamailio
Branch: 5.0
Commit: db00ca14a3d94e736a1e4bd87af3b23ce93dc037
URL:
https://github.com/kamailio/kamailio/commit/db00ca14a3d94e736a1e4bd87af3b23…
Author: Seudin Kasumovic <seudin.kasumovic(a)gmail.com>
Committer: Seudin Kasumovic <seudin.kasumovic(a)gmail.com>
Date: 2018-01-04T09:27:00+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/db00ca14a3d94e736a1e4bd87af3b23…
Patch:
https://github.com/kamailio/kamailio/commit/db00ca14a3d94e736a1e4bd87af3b23…
---
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);