Skip to content

Commit

Permalink
xedec.c: Hex hash conversion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mezantrop committed Oct 18, 2023
1 parent 1e4fb05 commit 53211a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

* 2023.10.18 Current
* `xedec.c`: Hex hash conversion fix

* 2023.10.10 ts-warp-1.4.0, gui-warp-1.0.11 (gui-warp-v1.0.18-mac), ns-warp-1.0.7
* `ts-warp`: Incompatible to previous versions, CLI options for connections: `-T` Transparent, `-S` Socks, `-H` HTTP
* `ts-warp`: Transparent connections port: `10800`, Internal Socks server port: `7080`, Internal HTTP server: `8080`
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define PROG_NAME_SHORT "TSW"
#define PROG_VERSION_MAJOR "1"
#define PROG_VERSION_MINOR "4"
#define PROG_VERSION_BUILD "0"
#define PROG_VERSION_BUILD "1"
#define PROG_VERSION PROG_VERSION_MAJOR "." PROG_VERSION_MINOR "." PROG_VERSION_BUILD
#define PROG_NAME_FULL PROG_NAME " " PROG_VERSION
#define PROG_NAME_CODE PROG_NAME_SHORT PROG_VERSION
2 changes: 1 addition & 1 deletion xedec.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ char *xencrypt(char *xkey, char *prefix, char *text) {
char *xdecrypt(char *hex_hash, char *prefix) {
char *int_hash = NULL, *xkey = NULL, *pref = NULL, *text = NULL, *s = NULL;
int hash_len = 0, pref_len = 0;
char ch[2];
char ch[3] = {0}; /* ch[2] is for NULL-terminated string */
int xkey_len = 0, b = 0;

if (!hex_hash) return NULL;
Expand Down

0 comments on commit 53211a0

Please sign in to comment.