1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

Don't silently ignore IPC messages which aren't in the table (oops).

This commit is contained in:
Josh Elsasser 2007-07-14 05:29:18 +00:00
parent c0970d0431
commit 1b5cde1edb
2 changed files with 4 additions and 1 deletions

View file

@ -1126,6 +1126,8 @@ gotmsg( struct ipc_info * info, benc_val_t * name, benc_val_t * val,
info->funcs->def( msg->id, val, tag, arg );
}
}
else if( NULL != info->funcs->def )
info->funcs->def( IPC__MSG_UNKNOWN, NULL, tag, arg );
return 0;
}

View file

@ -75,7 +75,8 @@ enum ipc_msg
IPC_MSG_SUP,
IPC_MSG_UPLIMIT,
IPC_MSG_VERSION,
IPC__MSG_COUNT
IPC__MSG_COUNT,
IPC__MSG_UNKNOWN
};
#define IPC_INF_COMMENT ( 1 << 0 )