diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-06-28 22:18:57 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-06-28 22:18:57 +0200 |
commit | b85c1a60bf7f27e37fe2a86b26aa83ff198e208e (patch) | |
tree | eac45cf0a5c0f24ac04f6d07dd20504370cd0af9 /conn_data.c | |
parent | f2f4f0d94a5280e15d89c25832825bb3ce65d2fd (diff) |
server/protocol: Protocol version negotiation
Diffstat (limited to 'conn_data.c')
-rw-r--r-- | conn_data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/conn_data.c b/conn_data.c index 1b237b4..fa2da10 100644 --- a/conn_data.c +++ b/conn_data.c @@ -7,6 +7,7 @@ void conn_data_init(struct conn_data *data,int fd){ data->buflen=0; data->buffer=malloc(data->bufsz,char); + data->protversion=-1; data->userid=-1; } @@ -16,5 +17,6 @@ void conn_data_nullify(struct conn_data *data){ data->bufsz=0; data->buflen=0; + data->protversion=-1; data->userid=-1; } |