Skip to content

Commit 966f8b0

Browse files
committed
Merge branch 'master' into release
2 parents bc23d13 + ccd79a2 commit 966f8b0

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if (KS_PLAT_WIN OR WITH_KS_TEST)
4343
endif()
4444

4545
# Declare our project, libks2
46-
project(LibKS2 VERSION 2.0.8 LANGUAGES C CXX)
46+
project(LibKS2 VERSION 2.0.9 LANGUAGES C CXX)
4747
message("LibKS2 Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
4848

4949
# Set package version

src/include/libks/ks.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
#endif
3131

3232
/* libks version as a string */
33-
#define KS_VERSION "2.0.8"
33+
#define KS_VERSION "2.0.9"
3434

3535
/* libks version as a number */
36-
#define KS_VERSION_NUM 20008
36+
#define KS_VERSION_NUM 20009
3737

3838
/* Use this to allow enabling TCP_KEEPIDLE and TCP_KEEPINTVL socket options */
3939
//#define KS_KEEP_IDLE_INTVL 1

src/ks_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static int __full_callback(void *data __attribute__((unused)), uintptr_t pc, con
3535
function == NULL ? "???" : function ,
3636
function == NULL ? "???" : filename, lineno);
3737

38-
return strcmp(function, "main") == 0 ? 1 : 0;
38+
return (function != NULL && strcmp(function, "main") == 0) ? 1 : 0;
3939
}
4040

4141
static void __error_callback(void *data, const char *msg, int errnum)

src/kws.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,7 @@ KS_DECLARE(ks_status_t) kws_init_ex(kws_t **kwsP, ks_socket_t sock, SSL_CTX *ssl
985985

986986
err:
987987
kws_destroy(&kws);
988+
*kwsP = NULL;
988989

989990
return KS_STATUS_FAIL;
990991
}

win/libks-version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Import Project="basedir.props" Condition=" '$(BaseDirImported)' == ''"/>
55
</ImportGroup>
66
<PropertyGroup Label="UserMacros">
7-
<libksVersion>2.0.8</libksVersion>
7+
<libksVersion>2.0.9</libksVersion>
88
<libksBuildNumber>0</libksBuildNumber>
99
<libksLibDir>$(BaseDir)../</libksLibDir>
1010
</PropertyGroup>

0 commit comments

Comments
 (0)