Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve log message for WMI connect failed or missing WMI support. #670

Merged
merged 1 commit into from
Mar 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Changed
- Replace bogus data with a better message and the vendor. [#665](https://github.com/greenbone/openvas/pull/665)
- Improve log message for WMI connect failed or missing WMI support. [#670](https://github.com/greenbone/openvas/pull/670)

### Fixed
- Fix issues discovered with clang compiler. [#654](https://github.com/greenbone/openvas/pull/654)
- Fix gcc-9 and gcc-10 warnings. [#655](https://github.com/greenbone/openvas/pull/655)
Expand Down
9 changes: 6 additions & 3 deletions nasl/nasl_wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ nasl_wmi_connect (lex_ctxt *lexic)
handle = wmi_connect (argc, argv);
if (!handle)
{
g_message ("nasl_wmi_connect: WMI Connect failed");
g_message ("nasl_wmi_connect: WMI Connect failed or missing WMI support "
"for the scanner");
return NULL;
}

Expand Down Expand Up @@ -320,7 +321,8 @@ nasl_wmi_connect_rsop (lex_ctxt *lexic)
handle = wmi_connect_rsop (argc, argv);
if (!handle)
{
g_message ("nasl_wmi_connect_rsop: WMI Connect failed");
g_message ("nasl_wmi_connect_rsop: WMI Connect failed or missing WMI "
"support for the scanner");
return NULL;
}

Expand Down Expand Up @@ -430,7 +432,8 @@ nasl_wmi_connect_reg (lex_ctxt *lexic)
handle = wmi_connect_reg (argc, argv);
if (!handle)
{
g_message ("nasl_wmi_connect_reg: WMI Connect failed");
g_message ("nasl_wmi_connect_reg: WMI Connect failed or missing WMI "
"support for the scanner");
return NULL;
}

Expand Down