Skip to content

Commit

Permalink
fix tls1.2_ticket_auth host name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Feb 4, 2017
1 parent 2d0769f commit e1d8252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls1.2_ticket.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int tls12_ticket_auth_client_encode(obfs *self, char **pencryptdata, int datalen

char sni[256] = {0};
char* param = NULL;
if (!self->server.param || strlen(self->server.param) > 0)
if (self->server.param && strlen(self->server.param) > 0)
param = self->server.param;
else
param = self->server.host;
Expand Down

0 comments on commit e1d8252

Please sign in to comment.