Skip to content

Commit

Permalink
[dialog] repl_prof_add never increments the return buffer size for th…
Browse files Browse the repository at this point in the history
…reshold comparison
  • Loading branch information
Jarrod Baumann committed Apr 1, 2016
1 parent 3ab8237 commit 52028bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dialog/dlg_replication.c
Expand Up @@ -942,7 +942,7 @@ static int repl_prof_add(str *name, int has_value, str *value,
/* the other end should already know if the profile has a value or not */
if (value && bin_push_str(value) < 0)
return -1;
if (bin_push_int(count) < 0)
if ((ret = bin_push_int(count)) < 0)
return -1;

return ret;
Expand Down

0 comments on commit 52028bd

Please sign in to comment.