Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Oct 11, 2018
1 parent 7e57e49 commit 08e56f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions skynet-src/skynet_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,12 @@ skynet_send(struct skynet_context * context, uint32_t source, uint32_t destinati
}

if (destination == 0) {
if (data) {
skynet_error(context, "Destination address can't be 0");
skynet_free(data);
return -1;
}

return session;
}
if (skynet_harbor_message_isremote(destination)) {
Expand Down

0 comments on commit 08e56f4

Please sign in to comment.