diff options
author | Jakub Sławiński | 2006-02-05 15:14:03 +0100 |
---|---|---|
committer | Joshua Judson Rosen | 2014-07-17 21:15:02 +0200 |
commit | b457fec36399c1f7de093d5e92bb4fa453b79c86 (patch) | |
tree | 2084c9a78d40213015e6f10e3e9e01bc4c0c51f1 /src/client_configuration_struct.c | |
parent | Update copyright statements. (diff) | |
download | apf-b457fec36399c1f7de093d5e92bb4fa453b79c86.tar.gz |
v0.8
- Fixed: infinite loop after buffering message
- Fixed: corrupt packets after closing connections in the stopped state
- Fixed: bug in mapping user numbers between afclient and afserver
- Fixed: premature close of the service connection
- Fixed: invalid buffering when the connection is closing
- Added: Multiple tunnels in one afclient<->afserver connection
Diffstat (limited to 'src/client_configuration_struct.c')
-rw-r--r-- | src/client_configuration_struct.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client_configuration_struct.c b/src/client_configuration_struct.c index c010cec..94c0419 100644 --- a/src/client_configuration_struct.c +++ b/src/client_configuration_struct.c @@ -22,6 +22,7 @@ #include <stdlib.h> #include <string.h> +#include <assert.h> #include "string_functions.h" #include "client_configuration_struct.h" @@ -36,6 +37,7 @@ ClientConfiguration* ClientConfiguration_new() { ClientConfiguration* tmp = calloc(1, sizeof(ClientConfiguration)); + assert(tmp != NULL); if (tmp == NULL) { return NULL; } @@ -52,9 +54,11 @@ void ClientConfiguration_free(ClientConfiguration** cc) { int i; + assert(cc != NULL); if (cc == NULL) { return; } + assert((*cc) != NULL); if ((*cc) == NULL) { return; } @@ -89,6 +93,7 @@ ClientConfiguration_free(ClientConfiguration** cc) void ClientConfiguration_set_keysFile(ClientConfiguration* cc, char* keysFile) { + assert(cc != NULL); if (cc == NULL) { return; } @@ -105,6 +110,7 @@ ClientConfiguration_set_keysFile(ClientConfiguration* cc, char* keysFile) void ClientConfiguration_set_storeFile(ClientConfiguration* cc, char* storeFile) { + assert(cc != NULL); if (cc == NULL) { return; } @@ -121,6 +127,7 @@ ClientConfiguration_set_storeFile(ClientConfiguration* cc, char* storeFile) void ClientConfiguration_set_dateFormat(ClientConfiguration* cc, char* dateFormat) { + assert(cc != NULL); if (cc == NULL) { return; } @@ -137,6 +144,7 @@ ClientConfiguration_set_dateFormat(ClientConfiguration* cc, char* dateFormat) void ClientConfiguration_set_realmsNumber(ClientConfiguration* cc, int realmsNumber) { + assert(cc != NULL); if (cc == NULL) { return; } @@ -154,6 +162,7 @@ void ClientConfiguration_set_realmsTable(ClientConfiguration* cc, ClientRealm** realmsTable) { int i; + assert(cc != NULL); if (cc == NULL) { return; } @@ -179,6 +188,7 @@ ClientConfiguration_set_realmsTable(ClientConfiguration* cc, ClientRealm** realm void ClientConfiguration_set_ignorePublicKeys(ClientConfiguration* cc, char ignorePublicKeys) { + assert(cc != NULL); if (cc == NULL) { return; } @@ -195,6 +205,7 @@ ClientConfiguration_set_ignorePublicKeys(ClientConfiguration* cc, char ignorePub char* ClientConfiguration_get_keysFile(ClientConfiguration* cc) { + assert(cc != NULL); if (cc == NULL) { return NULL; } @@ -211,6 +222,7 @@ ClientConfiguration_get_keysFile(ClientConfiguration* cc) char* ClientConfiguration_get_storeFile(ClientConfiguration* cc) { + assert(cc != NULL); if (cc == NULL) { return NULL; } @@ -227,6 +239,7 @@ ClientConfiguration_get_storeFile(ClientConfiguration* cc) char* ClientConfiguration_get_dateFormat(ClientConfiguration* cc) { + assert(cc != NULL); if (cc == NULL) { return NULL; } @@ -243,6 +256,7 @@ ClientConfiguration_get_dateFormat(ClientConfiguration* cc) int ClientConfiguration_get_realmsNumber(ClientConfiguration* cc) { + assert(cc != NULL); if (cc == NULL) { return -1; } @@ -259,6 +273,7 @@ ClientConfiguration_get_realmsNumber(ClientConfiguration* cc) ClientRealm** ClientConfiguration_get_realmsTable(ClientConfiguration* cc) { + assert(cc != NULL); if (cc == NULL) { return NULL; } @@ -275,6 +290,7 @@ ClientConfiguration_get_realmsTable(ClientConfiguration* cc) char ClientConfiguration_get_ignorePublicKeys(ClientConfiguration* cc) { + assert(cc != NULL); if (cc == NULL) { return 0; } |