Skip to content

Commit

Permalink
Fix Coverity Scan 1400486-1400487. Unused values.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Apr 5, 2019
1 parent 0d3c7fe commit ad3b7ec
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,7 @@ int mosquitto_security_auth_start(struct mosquitto_db *db, struct mosquitto *con
return MOSQ_ERR_SUCCESS;
}else if(rc == MOSQ_ERR_AUTH_CONTINUE){
return MOSQ_ERR_AUTH_CONTINUE;
}else if(rc == MOSQ_ERR_NOT_SUPPORTED){
rc = MOSQ_ERR_PLUGIN_DEFER;
}else{
}else if(rc != MOSQ_ERR_NOT_SUPPORTED){
return rc;
}
}
Expand Down Expand Up @@ -871,9 +869,7 @@ int mosquitto_security_auth_continue(struct mosquitto_db *db, struct mosquitto *
return MOSQ_ERR_SUCCESS;
}else if(rc == MOSQ_ERR_AUTH_CONTINUE){
return MOSQ_ERR_AUTH_CONTINUE;
}else if(rc == MOSQ_ERR_NOT_SUPPORTED){
rc = MOSQ_ERR_PLUGIN_DEFER;
}else{
}else if(rc != MOSQ_ERR_NOT_SUPPORTED){
return rc;
}
}
Expand Down

0 comments on commit ad3b7ec

Please sign in to comment.