Fixed keyring opening sequence for overlay mode.

This commit is contained in:
gardners 2012-04-14 02:38:09 +09:30
parent baf9212c20
commit faa2f5ef6c

View File

@ -100,9 +100,6 @@ int recvwithttl(int sock,unsigned char *buffer,int bufferlen,int *ttl,
int server(char *backing_file,int foregroundMode)
{
/* Get backing store for HLR */
getKeyring(backing_file);
if (overlayMode)
{
/* Now find and initialise all the suitable network interfaces, i.e.,
@ -120,6 +117,9 @@ int server(char *backing_file,int foregroundMode)
{
/* Create a simple socket for listening on if we are not in overlay mesh mode. */
createServerSocket();
/* Get backing store for keyring (overlay sets it up itself) */
getKeyring(backing_file);
}
/* Detach from the console */