summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dtls.c2
-rw-r--r--radmsg.c2
-rw-r--r--radsecproxy.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/dtls.c b/dtls.c
index 44031f3..0b26bbf 100644
--- a/dtls.c
+++ b/dtls.c
@@ -148,7 +148,7 @@ SSL *dtlsacccon(uint8_t acc, SSL_CTX *ctx, int s, struct sockaddr *addr, struct
mem0bio = BIO_new(BIO_s_mem());
BIO_set_mem_eof_return(mem0bio, -1);
wbio = BIO_new_dgram(s, BIO_NOCLOSE);
- BIO_dgram_set_peer(wbio, addr);
+ i = BIO_dgram_set_peer(wbio, addr); /* i just to avoid warning */
SSL_set_bio(ssl, mem0bio, wbio);
for (i = 0; i < 5; i++) {
diff --git a/radmsg.c b/radmsg.c
index 0521fc6..422186d 100644
--- a/radmsg.c
+++ b/radmsg.c
@@ -235,7 +235,7 @@ uint8_t *radmsg2buf(struct radmsg *msg, uint8_t *secret) {
/* if secret set we also validate message authenticator if present */
struct radmsg *buf2radmsg(uint8_t *buf, uint8_t *secret, uint8_t *rqauth) {
struct radmsg *msg;
- uint8_t t, l, *v, *p, auth[16];
+ uint8_t t, l, *v = NULL, *p, auth[16];
uint16_t len;
struct tlv *attr;
diff --git a/radsecproxy.c b/radsecproxy.c
index 4a02197..fdb2838 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2055,7 +2055,7 @@ struct request *createstatsrvrq() {
/* code for removing state not finished */
void *clientwr(void *arg) {
struct server *server = (struct server *)arg;
- struct rqout *rqout;
+ struct rqout *rqout = NULL;
pthread_t clientrdth;
int i, secs, dynconffail = 0;
uint8_t rnd;