daemon crash when exporting account on ring without internet
Issue generated from Tuleap's migration script. Originally submitted by: Sébastien Blin (amarok)
Fedora, client gnome.
* Reproduce steps:
Disconnect ring from the internet.
In the settings menu, open an account details page -> "Devices" -> "Add a new device" -> Type your password -> "Export on the Ring"
* Expected result:
The client should detect there is no internet connection and the daemon should not crash.
* Actual result:
** Gnome client: the client is waiting the daemon
** Daemon: crash. Trace:
[1499191967.450| 5458|ringaccount.cpp:1173 ] [Account XXXXXXXXXXXXX] exporting Ring account
[1499191967.450| 5458|ringaccount.cpp:977 ] [Account XXXXXXXXXXXXX] reading account archive
[1499191971.224| 5458|ringaccount.cpp:1005 ] Loading account archive (15265 bytes)
dring: ../src/pjlib-util/base64.c:164: pj_base64_decode: Assertion `j < *out_len' failed.
 5445 abort (core dumped) ./dring -cd