diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-22 08:49:09 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-28 15:50:15 +0000 |
| commit | 02bb39f448b9ed151a638d22fdcbccc895f4d3cf (patch) | |
| tree | 5b17db72f1b12951e08d6ae2e5179eb40fcac2eb /src/streams/socket.c | |
| parent | 52478d7dc323ad1768bc5c6fc03c031b7adc5d20 (diff) | |
| download | libgit2-02bb39f448b9ed151a638d22fdcbccc895f4d3cf.tar.gz | |
stream registration: take an enum type
Accept an enum (`git_stream_t`) during custom stream registration that
indicates whether the registration structure should be used for standard
(non-TLS) streams or TLS streams.
Diffstat (limited to 'src/streams/socket.c')
| -rw-r--r-- | src/streams/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/streams/socket.c b/src/streams/socket.c index 21f7fea06..732b45940 100644 --- a/src/streams/socket.c +++ b/src/streams/socket.c @@ -224,7 +224,7 @@ int git_socket_stream_new( assert(out && host && port); - if ((error = git_stream_registry_lookup(&custom, 0)) == 0) + if ((error = git_stream_registry_lookup(&custom, GIT_STREAM_STANDARD)) == 0) init = custom.init; else if (error == GIT_ENOTFOUND) init = default_socket_stream_new; |
