• Andrew Price's avatar
    Fix new user logins · 7e8ca22f
    Andrew Price authored
    In main(), login_ok() was being called before ipc_connect() but when a
    new user is created, the login_ok() call leads to a broadcast() call
    which attempts to reconnect to the server through ipc_check() and fails
    because ipc_connect() hasn't set the server location yet. This bug has
    been lurking for a while but it has only recently turned into a segfault
    due to the NULL server location. Move the broadcast() calls to come
    after the ipc_connect() for now.
    7e8ca22f