Fix TLS peer wildcard matching with matching last component

When the last component of a wildcard match actually matches we
end up with pWildcard == NULL at the end of while(*pC). Check
for pWildcard != NULL before dereferencing it.
Merge pull request #3 from yath/fix-wildcard-matching

Fix TLS peer wildcard matching with matching last component