Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bricewge committed Jun 27, 2018
1 parent 8452029 commit 04d4283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handle_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ int handle__connect(struct mosquitto_db *db, struct mosquitto *context)
}
name_entry = X509_NAME_get_entry(name, i);
if(name_entry){
context->username = mosquitto__strdup((char *)X509_NAME_ENTRY_get_data(name_entry));
context->username = mosquitto__strdup((char *)ASN1_STRING_get0_data(X509_NAME_ENTRY_get_data(name_entry->value)));
}
} else { // use_subject_as_username
BIO *subject_bio = BIO_new(BIO_s_mem());
Expand Down

0 comments on commit 04d4283

Please sign in to comment.