Only allow clients to send messages for now
This commit is contained in:
parent
ce556dd215
commit
3c91657465
|
@ -374,7 +374,8 @@ static int _tcp_send(TCP * tcp, AppMessage * message, int acknowledge)
|
|||
{
|
||||
Buffer * buffer;
|
||||
|
||||
/* XXX this assumes being a client */
|
||||
if(tcp->mode != ATM_CLIENT)
|
||||
return -error_set_code(1, "%s", "Not a client");
|
||||
if((buffer = buffer_new(0, NULL)) == NULL)
|
||||
return -1;
|
||||
if(appmessage_serialize(message, buffer) != 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user