Fix test to match fixed protocol check.

This commit is contained in:
Roger A. Light 2020-02-27 23:12:28 +00:00
parent 0c68c20d2b
commit c2ec6f002e

View File

@ -65,7 +65,7 @@ int mosquitto_auth_unpwd_check(void *user_data, struct mosquitto *client, const
//return MOSQ_ERR_AUTH;
}
if(mosquitto_client_protocol(client) != 2){
if(mosquitto_client_protocol(client) != mp_mqtt){
fprintf(stderr, "mosquitto_auth_unpwd_check protocol error: %d\n", mosquitto_client_protocol(client));
return MOSQ_ERR_AUTH;
}