Fix: wrong data structure used in commit df41f83
[lttng-tools.git] / src / bin / lttng-relayd / live.c
index c70c31762f7d7f0dd7c40e63acffadf3a1d46c4b..292f0601e958e97eee1b3d021bb96570a712c2e0 100644 (file)
@@ -694,7 +694,7 @@ int viewer_connect(struct relay_connection *conn)
 
        health_code_update();
 
-       memset(&msg, 0, sizeof(msg));
+       memset(&reply, 0, sizeof(reply));
        reply.major = RELAYD_VERSION_COMM_MAJOR;
        reply.minor = RELAYD_VERSION_COMM_MINOR;
 
@@ -948,10 +948,6 @@ int viewer_get_new_streams(struct relay_connection *conn)
        send_streams = 1;
        response.status = htobe32(LTTNG_VIEWER_NEW_STREAMS_OK);
 
-       if (!send_streams) {
-               goto send_reply;
-       }
-
        ret = make_viewer_streams(session, LTTNG_VIEWER_SEEK_LAST, NULL, &nb_unsent,
                        &nb_created);
        if (ret < 0) {
@@ -1082,10 +1078,6 @@ int viewer_attach_session(struct relay_connection *conn)
                goto send_reply;
        }
 
-       if (!send_streams) {
-               goto send_reply;
-       }
-
        ret = make_viewer_streams(session, seek_type, &nb_streams, NULL, NULL);
        if (ret < 0) {
                goto end_unlock;
This page took 0.033534 seconds and 5 git commands to generate.