* Check for NULL pointers before reading them.

This commit is contained in:
Justin Maggard 2013-02-01 20:26:52 +00:00
parent db1b9dff32
commit 77c30bdfba

View File

@ -205,7 +205,7 @@ rcvBeaconMessage(char * beacon)
cp = strtok_r(NULL, "=\r\n", &tokptr);
}
if( tivoConnect == NULL )
if( !tivoConnect || !platform || !method )
return 0;
#ifdef DEBUG