Protect against client->id NULL dereference.

pull/211/merge
Roger A. Light 11 years ago
parent 065c6356d4
commit eb01459571

@ -251,7 +251,7 @@ static int _sub_add(struct mosquitto_db *db, struct mosquitto *context, int qos,
int i;
if(!tokens){
if(context){
if(context && context->id){
leaf = subhier->subs;
last_leaf = NULL;
while(leaf){

Loading…
Cancel
Save