A check for a bound session omitted the subscript for the first byte of the array, forcing the check to always be true. This means that in the case of a session not bound to an interface, the ss structure will not be filled-in if the logging level is set to 0. This will prevent the DCB priority from being set.
Signed-off-by: Mark Rustad <[email protected]> Tested-by: Ross Brattain <[email protected]> --- usr/io.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/io.c b/usr/io.c index 7d366c7..28d9168 100644 --- a/usr/io.c +++ b/usr/io.c @@ -470,7 +470,7 @@ iscsi_io_tcp_poll(iscsi_conn_t *conn, int timeout_ms) } len = sizeof(ss); - if (log_level > 0 || !conn->session->netdev) + if (log_level > 0 || !conn->session->netdev[0]) rc = getsockname(conn->socket_fd, (struct sockaddr *)&ss, &len); if (log_level > 0 && rc >= 0) { getnameinfo((struct sockaddr *) &conn->saddr, -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
