Skip to content
Snippets Groups Projects
Commit 2cc791d3 authored by pierre-luc's avatar pierre-luc
Browse files

[#1872] Check if the user input is smaller than PJ_MAX_HOSTNAME.

parent 14d4f141
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,10 @@ int SIPAccount::registerVoIPLink()
/* Retrieve the account information */
/* Stuff needed for SIP registration */
if (Manager::instance().getConfigString (_accountID, HOSTNAME).length() >= PJ_MAX_HOSTNAME) {
return !SUCCESS;
}
setHostname (Manager::instance().getConfigString (_accountID, HOSTNAME));
setUsername (Manager::instance().getConfigString (_accountID, USERNAME));
setPassword (Manager::instance().getConfigString (_accountID, PASSWORD));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment