HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19853c1
)
Fix crash in the apt-transport-https when Owner is NULL
author
Tomasz Buchert
<tomasz.buchert@inria.fr>
Sun, 15 Feb 2015 23:57:29 +0000
(
00:57
+0100)
committer
Michael Vogt
<mvo@debian.org>
Mon, 23 Feb 2015 11:52:01 +0000
(12:52 +0100)
Do not crash in ServerState::HeaderLine if there is no Owner.
Closes: #778375
methods/server.cc
patch
|
blob
|
blame
|
history
diff --git
a/methods/server.cc
b/methods/server.cc
index
cb0341d
..
e321e02
100644
(file)
--- 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)