summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-04-21 15:37:51 +0200
committerKarel Klic <kklic@redhat.com>2010-04-21 15:37:51 +0200
commit0357cd6225498b7b0cbbc71a9da1ed536a2d3603 (patch)
tree877dffcfcb4f5d72bee64d5b014edf0ed3b5dea6 /lib
parent6a39e49bd877a33e36130cd5ffb8b0bc89066bac (diff)
downloadabrt-0357cd6225498b7b0cbbc71a9da1ed536a2d3603.tar.gz
abrt-0357cd6225498b7b0cbbc71a9da1ed536a2d3603.tar.xz
abrt-0357cd6225498b7b0cbbc71a9da1ed536a2d3603.zip
Bugzilla login/password emptiness check uses 'or' instead of 'and'
Diffstat (limited to 'lib')
-rw-r--r--lib/Plugins/Bugzilla.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp
index 0f8a1c22..18df7216 100644
--- a/lib/Plugins/Bugzilla.cpp
+++ b/lib/Plugins/Bugzilla.cpp
@@ -610,10 +610,10 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData,
NoSSLVerify = m_bNoSSLVerify;
}
- if ((Login == "") && (Password == ""))
+ if ((Login == "") || (Password == ""))
{
VERB3 log("Empty login and password");
- throw CABRTException(EXCEP_PLUGIN, _("Empty login and password.\nPlease check "PLUGINS_CONF_DIR"/Bugzilla.conf."));
+ throw CABRTException(EXCEP_PLUGIN, _("Empty login or password.\nPlease check "PLUGINS_CONF_DIR"/Bugzilla.conf."));
}
const std::string& component = get_crash_data_item_content(pCrashData, FILENAME_COMPONENT);