summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Buchert <tomasz.buchert@inria.fr>2015-02-16 00:57:29 +0100
committerMichael Vogt <mvo@debian.org>2015-02-23 12:52:01 +0100
commit0c2dc43d4fe1d026650b5e2920a021557f9534a6 (patch)
tree6bb095fb15f920fbab105b64428f5f4471d41648
parent19853c18629bf531b913255905e5727ae2c33bb0 (diff)
Fix crash in the apt-transport-https when Owner is NULL
Do not crash in ServerState::HeaderLine if there is no Owner. Closes: #778375
-rw-r--r--methods/server.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/server.cc b/methods/server.cc
index cb0341d5f..e321e0230 100644
--- a/methods/server.cc
+++ b/methods/server.cc
@@ -129,7 +129,7 @@ bool ServerState::HeaderLine(string Line)
if (elements == 3)
{
Code[0] = '\0';
- if (Owner->Debug == true)
+ if (Owner != NULL && Owner->Debug == true)
clog << "HTTP server doesn't give Reason-Phrase for " << Result << std::endl;
}
else if (elements != 4)