mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Merge pull request #1116 from ailin-nemui/server-fuzz
fix warning in fe-fuzz/server-fuzz
This commit is contained in:
commit
0df21bcbb4
@ -115,6 +115,7 @@ void test_server() {
|
|||||||
conn = server_create_conn(proto->id, "localhost", 0, "", "", "user");
|
conn = server_create_conn(proto->id, "localhost", 0, "", "", "user");
|
||||||
server = proto->server_init_connect(conn);
|
server = proto->server_init_connect(conn);
|
||||||
server->session_reconnect = TRUE;
|
server->session_reconnect = TRUE;
|
||||||
|
g_free(server->tag);
|
||||||
server->tag = g_strdup("testserver");
|
server->tag = g_strdup("testserver");
|
||||||
|
|
||||||
/* we skip some initialisations that would try to send data */
|
/* we skip some initialisations that would try to send data */
|
||||||
@ -176,6 +177,6 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|||||||
|
|
||||||
g_strfreev(head);
|
g_strfreev(head);
|
||||||
g_free(copy);
|
g_free(copy);
|
||||||
server_unref(server);
|
server_disconnect(server);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user