Commit Diff


commit - 4c113d8850dfc423e3dae2d2f90e7e9a9d42f0b0
commit + 14baf64f41b696e7a04eb7c63b1776d0dc94a980
blob - cd7abd4bd38dcf79d688e448a9acecb98234dad5
blob + 79fbd01cef22a18fed11f7817660462d8fcabae1
--- src/ngircd/conn-ssl.c
+++ src/ngircd/conn-ssl.c
@@ -123,8 +123,11 @@ pem_passwd_cb(char *buf, int size, int rwflag, void *p
 {
 	array *pass = password;
 	int passlen;
-	assert(rwflag == 0); /* 0 -> callback used for decryption. See SSL_CTX_set_default_passwd_cb(3) */
 
+	(void)rwflag;		/* rwflag is unused if DEBUG is not set. */
+	assert(rwflag == 0);	/* 0 -> callback used for decryption.
+				 * See SSL_CTX_set_default_passwd_cb(3) */
+
 	passlen = (int) array_bytes(pass);
 
 	LogDebug("pem_passwd_cb buf size %d, array size %d", size, passlen);