Remove early dereference of ASPNETCORE_PORT env var (#1274)

This commit is contained in:
Justin Kotalik 2018-08-28 09:34:54 -07:00 committed by GitHub
parent 338af6f07d
commit cc26d973ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -131,7 +131,6 @@ SERVER_PROCESS::SetupListenPort(
pEnvironmentVarTable->FindKey(ASPNETCORE_PORT_ENV_STR, &pEntry);
if (pEntry != NULL)
{
pEntry->Dereference();
if (pEntry->QueryValue() != NULL || pEntry->QueryValue()[0] != L'\0')
{
m_dwPort = (DWORD)_wtoi(pEntry->QueryValue());