error on call an invalid address

This commit is contained in:
云风
2013-09-18 17:41:25 +08:00
parent 5feaf9f593
commit c972b647bd
5 changed files with 38 additions and 13 deletions

View File

@@ -384,6 +384,14 @@ skynet_command(struct skynet_context * context, const char * cmd , const char *
return NULL;
}
if (strcmp(cmd,"UNLOCK") == 0) {
if (context->init == false) {
return NULL;
}
skynet_mq_unlock(context->queue);
return NULL;
}
if (strcmp(cmd,"REG") == 0) {
if (param == NULL || param[0] == '\0') {
sprintf(context->result, ":%x", context->handle);