New Defects reported by Coverity Scan for libvirt

Hi, Please find the latest report on new defect(s) introduced to libvirt found with Coverity Scan. 1 new defect(s) introduced to libvirt found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 404482: Control flow issues (DEADCODE) /src/rpc/virnetsshsession.c: 716 in virNetSSHAuthenticatePassword() ________________________________________________________________________________________________________ *** CID 404482: Control flow issues (DEADCODE) /src/rpc/virnetsshsession.c: 716 in virNetSSHAuthenticatePassword() 710 libssh2_session_last_error(sess->session, &errmsg, NULL, 0); 711 virReportError(VIR_ERR_AUTH_FAILED, 712 _("authentication failed: %s"), errmsg); 713 714 /* determine exist status */ 715 if (rc == LIBSSH2_ERROR_AUTHENTICATION_FAILED)
CID 404482: Control flow issues (DEADCODE) Execution cannot reach this statement: "ret = 1;".
716 ret = 1; 717 else 718 ret = -1; 719 720 cleanup: 721 VIR_FREE(password);
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
participants (1)
-
scan-admin@coverity.com