fix syntax

This commit is contained in:
jl777
2016-09-14 05:17:26 -03:00
parent 1fb0786301
commit 93b5c955d4
2 changed files with 4 additions and 2 deletions

View File

@@ -16,7 +16,9 @@
#ifndef H_KOMODO_H
#define H_KOMODO_H
int32_t "C" komodo_checkmsg(char *ipaddr,uint8_t *data,int32_t datalen)
#include <stdint.h>
int32_t "C" komodo_checkmsg(char *command,char *ipaddr,uint8_t *data,int32_t datalen)
{
return(0);
}

View File

@@ -5079,7 +5079,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
else
{
if ( komodo_checkmsg(pfrom->addr.ToString(),msg.vRecv.begin(),hdr.nMessageSize) < 0 )
if ( komodo_checkmsg(hdr.GetCommand(),pfrom->addr.ToString(),msg.vRecv.begin(),hdr.nMessageSize) < 0 )
LogPrint("net", "Unknown command \"%s\" from peer=%d\n", SanitizeString(strCommand),pfrom->id);
}