Mailinglist Archive: zypp-commit (275 mails)

< Previous Next >
[zypp-commit] <libzypp> ma-misc : Don't try to use an empty proxy string (bnc #551314)
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Fri, 30 Oct 2009 12:32:01 +0100
  • Message-id: <E1N4M90-0004xz-6K@xxxxxxxxxxxxxxxx>
ref: refs/heads/ma-misc
commit 591ad4b8fb3f7716e2d8779b9047a7dff6f1b2ac
Author: Michael Andres <ma@xxxxxxx>
Date: Fri Oct 30 12:32:01 2009 +0100

Don't try to use an empty proxy string (bnc #551314)
---
zypp/media/proxyinfo/ProxyInfoImpl.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zypp/media/proxyinfo/ProxyInfoImpl.h
b/zypp/media/proxyinfo/ProxyInfoImpl.h
index 9996b3a..550d88c 100644
--- a/zypp/media/proxyinfo/ProxyInfoImpl.h
+++ b/zypp/media/proxyinfo/ProxyInfoImpl.h
@@ -47,7 +47,7 @@ namespace zypp {
/** Return \c true if \ref enabled and \a url_r does not match \ref
noProxy. */
bool useProxyFor( const Url & url_r ) const
{
- if ( ! enabled() )
+ if ( ! enabled() || proxy( url_r.getScheme() ).empty() )
return false;

ProxyInfo::NoProxyList noproxy( noProxy() );
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages