Skip to content

Commit 4bca6c8

Browse files
author
David Wyban
committed
Update ISStreamer.cs
Fixed security issue with Success field of StreamResponse struct to close issue #7.
1 parent 5f836b8 commit 4bca6c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

InitialState.NET/ISStreamer.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ namespace InitialState.Streaming
2525
{
2626
public struct StreamResponse
2727
{
28-
public bool Success;
28+
private bool success;
2929
public System.Net.HttpStatusCode StatusCode;
3030
public int RateLimit;
3131
public int RateLimitRemaining;
3232
public DateTime RateLimitReset;
33+
34+
public bool Success { get => success; internal set => success = value; }
3335
}
3436

3537
/// <summary>
@@ -226,7 +228,7 @@ public CreateBucketStatus CreateBucket(string accessKey, string bucketKey, strin
226228
return null;
227229
}
228230

229-
StreamResponse sr;
231+
StreamResponse sr = new StreamResponse();
230232

231233
_jsonStrBuilder.Clear();
232234
_jsonStrBuilder.Append("[\r\n");

0 commit comments

Comments
 (0)