diff options
Diffstat (limited to 'src/or/proto_control0.c')
-rw-r--r-- | src/or/proto_control0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/proto_control0.c b/src/or/proto_control0.c index 5478d07e46..af84786489 100644 --- a/src/or/proto_control0.c +++ b/src/or/proto_control0.c @@ -16,7 +16,7 @@ peek_buf_has_control0_command(buf_t *buf) if (buf_datalen(buf) >= 4) { char header[4]; uint16_t cmd; - peek_from_buf(header, sizeof(header), buf); + buf_peek(header, sizeof(header), buf); cmd = ntohs(get_uint16(header+2)); if (cmd <= 0x14) return 1; /* This is definitely not a v1 control command. */ |