X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=client.cpp;h=f2d60a62653ea13abad4ff9366e8a2e5fa55ca97;hb=807a8ae8f6aca56e3e809aa19f4034a323f1b987;hp=54373d42ae1b9317f3bf7e7c154130deb2a306b0;hpb=1071b76d8e60d51d88d4e1310e7d6261b628a454;p=cubemap diff --git a/client.cpp b/client.cpp index 54373d4..f2d60a6 100644 --- a/client.cpp +++ b/client.cpp @@ -51,7 +51,7 @@ Client::Client(const ClientProto &serialized, Stream *stream) header_or_error_bytes_sent(serialized.header_or_error_bytes_sent()), stream_pos(serialized.stream_pos()) { - if (stream->mark_pool != NULL) { + if (stream != NULL && stream->mark_pool != NULL) { fwmark = stream->mark_pool->get_mark(); } else { fwmark = 0; // No mark.