Permalink
Browse files

Fix bug in setting socket options of type int

  • Loading branch information...
1 parent 30249a3 commit 2b0757346c7823677ca7f0f4cb93c0bcb38fbb83 @ericbmerritt ericbmerritt committed Mar 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 c_src/erlzmq_nif.c
View
@@ -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;

0 comments on commit 2b07573

Please sign in to comment.