Skip to content

Commit

Permalink
Merge pull request #2 from jerel/patch-1
Browse files Browse the repository at this point in the history
Fix compile error, return type expected to be int
  • Loading branch information
fortitudepub committed Jun 30, 2016
2 parents cdb49f1 + 50d0dcc commit 4f70c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goldy.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ static int session_init(const global_context *gc,
if (ret > PACKET_DATA_BUFFER_SIZE) {
/* Drop big packet silently*/
log_info("session_init - first packet payload too big");
return;
return 0;
}
pd = calloc(1, sizeof(packet_data));
memcpy(pd->payload, first_packet, first_packet_len);
Expand Down

0 comments on commit 4f70c9f

Please sign in to comment.