diff --git a/sflphone-common/libs/iax2/iax.c b/sflphone-common/libs/iax2/iax.c
index 3ae3c25b82df55487b1ae934f36afca477ccec39..00d06e7e5146f3f69a5108bb05f7de90258d3ddb 100644
--- a/sflphone-common/libs/iax2/iax.c
+++ b/sflphone-common/libs/iax2/iax.c
@@ -878,6 +878,7 @@ int iax_init(int preferredportno)
 	{
 		struct sockaddr_in sin;
 		socklen_t sinlen;
+		socklen_t *slen = &sinlen;
 		int flags;
 		int bufsize = 256 * 1024;
 
@@ -928,7 +929,7 @@ int iax_init(int preferredportno)
 		}
 
 		sinlen = sizeof(sin);
-		if (getsockname(netfd, (struct sockaddr *) &sin, &sinlen) < 0)
+		if (getsockname(netfd, (struct sockaddr *) &sin, slen) < 0)
 		{
 			close(netfd);
 			netfd = -1;
diff --git a/sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp b/sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
index 6aad8263d6ff87b4dc1a49d1a868a6b7b878a1b1..d14f0efdfa1bee6f9c21be7bcf27c8d322b10fca 100644
--- a/sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
+++ b/sflphone-common/src/audio/audiortp/AudioSrtpSession.cpp
@@ -319,7 +319,7 @@ char* AudioSrtpSession::encodeBase64 (unsigned char *input, int length)
     b64 = BIO_push (b64, bmem);
 
     BIO_write (b64, input, length);
-    BIO_flush (b64);
+    // BIO_flush (b64);
 
     // get pointer to data
     BIO_get_mem_ptr (b64, &bptr);