Fixed ordering of writing info about test DNS lookup to text area

This commit is contained in:
Darren VanBuren 2017-07-09 21:46:54 -07:00
parent 851c2f79e3
commit 1af0632037

View file

@ -61,7 +61,7 @@ void init() {
} }
if (policy == SSL_ALLOWED) { if (policy == SSL_ALLOWED) {
// Policy allowed this cipher choice // Policy allowed this cipher choice
fprintf(stderr, "Info: found cipher %x\n", (unsigned) *p); // fprintf(stderr, "Info: found cipher %x\n", (unsigned) *p);
foundGoodCipher = PR_TRUE; foundGoodCipher = PR_TRUE;
break; break;
} }
@ -110,13 +110,15 @@ int main(int argc, char *argv[]) {
SSL_ImportFD(NULL, tcpSocket); SSL_ImportFD(NULL, tcpSocket);
ui *uiInstance = new ui(argc, argv); ui *uiInstance = new ui(argc, argv);
int qAppRetCode = uiInstance->exec();
char messageBuf[1024]; char messageBuf[1024];
sprintf(messageBuf, "Found IP Address: %s", ipString); sprintf(messageBuf, "Found IP Address: %s", ipString);
uiInstance->mainLog->appendPlainText(messageBuf); uiInstance->mainLog->appendPlainText(messageBuf);
int qAppRetCode = uiInstance->exec();
// Shutdown of NSS
SECMOD_DestroyModule(builtInRootsMod); SECMOD_DestroyModule(builtInRootsMod);
NSS_ShutdownContext(nssContext); NSS_ShutdownContext(nssContext);