Fix OIdentdConfigGenerator double-printing on ssl 161/head
authoresainane <esainane+github@gmail.com>
Sat, 21 Nov 2015 08:38:11 +0000 (21:38 +1300)
committeresainane <esainane+github@gmail.com>
Sat, 21 Nov 2015 08:38:11 +0000 (21:38 +1300)
connected() is always connected to socketInitialized().
encrypted() is also connected to socketInitialized() when ssl is enabled.

socketInitialized() fires socketOpen(...) unconditionally, but does not fire socketInitialized(...) if we're using SSL without encryption yet - see line 464.

With socketOpen(...) connected to OIdentdConfigurationGenerator::addSocket, OIdentdConfigurationGenerator writes to .oidentd.conf twice for every connection.

Changing this to have socketInitialized(...) connected instead prevents this duplication.


No differences found