1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-08 22:08:02 +00:00

api: Bugfix, bump version to 4.1.271, initialise name/desc/algo in addpool() so checks for NULL work.

Otherwise API "addpool|a,b,c" command segfaults (access uninitialised
memory address).
This commit is contained in:
Noel Maersk 2014-04-12 19:24:32 +03:00
parent 49fecf93a3
commit f5709910fb
4 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
*
## Version 4.1.270 - 12th April 2014
## Version 4.1.271 - 12th April 2014
* Allow setting algorithm per-pool and initial implementation of kernel
hot-swapping (by _mrbrdo_). Use options `pool-algorithm` (in config

2
api.c
View File

@ -2159,7 +2159,7 @@ exitsama:
static void addpool(struct io_data *io_data, __maybe_unused SOCKETTYPE c, char *param, bool isjson, __maybe_unused char group)
{
char *url, *user, *pass;
char *name, *desc, *algo;
char *name = NULL, *desc = NULL, *algo = NULL;
struct pool *pool;
char *ptr;

View File

@ -2,7 +2,7 @@
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_define([v_maj], [4])
m4_define([v_min], [1])
m4_define([v_mic], [270])
m4_define([v_mic], [271])
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_define([v_ver], [v_maj.v_min.v_mic])
m4_define([lt_rev], m4_eval(v_maj + v_min))

View File

@ -68,11 +68,11 @@
#endif
#define VERSION "v4.1.270"
#define VERSION "v4.1.271"
#define PACKAGE_NAME "sgminer"
#define PACKAGE_TARNAME "sgminer"
#define PACKAGE_VERSION "4.1.270"
#define PACKAGE_STRING "sgminer 4.1.270"
#define PACKAGE_VERSION "4.1.271"
#define PACKAGE_STRING "sgminer 4.1.271"
#define PACKAGE "sgminer"
#define SGMINER_PREFIX ""