mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
fix fe-fuzz
This commit is contained in:
parent
f2795abcc5
commit
2a0f1d7636
@ -177,12 +177,23 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
|
||||
for (; *lines != NULL; lines++) {
|
||||
gchar *prefixedLine;
|
||||
int disconnected;
|
||||
if (prefixedChoice) {
|
||||
prefixedLine = g_strdup_printf(":user %s\n", *lines);
|
||||
} else {
|
||||
prefixedLine = g_strdup_printf("%s\n", *lines);
|
||||
}
|
||||
server_ref(server);
|
||||
signal_emit("server incoming", 2, server, prefixedLine);
|
||||
disconnected = server->disconnected;
|
||||
if (disconnected) {
|
||||
server_connect_unref(server->connrec);
|
||||
}
|
||||
server_unref(server);
|
||||
if (disconnected) {
|
||||
/* reconnect */
|
||||
test_server();
|
||||
}
|
||||
g_free(prefixedLine);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user