Skip to content

Commit

Permalink
Fix bug in setting socket options of type int
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbmerritt committed Mar 7, 2012
1 parent 30249a3 commit 2b07573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/erlzmq_nif.c
Expand Up @@ -344,7 +344,7 @@ NIF(erlzmq_nif_setsockopt)
case ZMQ_LINGER:
case ZMQ_RECONNECT_IVL:
case ZMQ_BACKLOG:
if (! enif_get_int(env, argv[1], &value_int)) {
if (! enif_get_int(env, argv[2], &value_int)) {
return enif_make_badarg(env);
}
option_value = &value_int;
Expand Down

0 comments on commit 2b07573

Please sign in to comment.