Cope with missing username.

pull/1907/head
Roger A. Light 5 years ago
parent aa7176e3ad
commit 6b75dc601e

@ -32,6 +32,9 @@ int dynsec_client__create(int argc, char *argv[], cJSON *j_command)
int i; int i;
bool request_password = true; bool request_password = true;
if(argc == 0){
return MOSQ_ERR_INVAL;
}
username = argv[0]; username = argv[0];
for(i=1; i<argc; i++){ for(i=1; i<argc; i++){

Loading…
Cancel
Save