diff --git a/exec/load/binkp.js b/exec/load/binkp.js
index 9173e9446dfda8f3d3f3814281a2c2eff921778e..9343dfe8236bf35bb8e3720ddeb604a061850c24 100644
--- a/exec/load/binkp.js
+++ b/exec/load/binkp.js
@@ -647,6 +647,12 @@ BinkP.prototype.recvFrame = function(timeout)
 	var ver;
 	var avail;
 
+	// Avoid warning from syncjslint by putting this in a closure.
+	function hex2ascii(hex)
+	{
+		return ascii(parseInt(hex, 16));
+	}
+
 	if (this.sock === undefined) {
 		this.partialFrame = undefined;
 		return undefined;
@@ -738,9 +744,7 @@ BinkP.prototype.recvFrame = function(timeout)
 						case 'OPT':
 							for (i=1; i<args.length; i++) {
 								if (args[i].substr(0,9) === 'CRAM-MD5-') {
-									this.cram = {algo:'MD5', challenge:args[i].substr(9).replace(/[0-9a-fA-F]{2}/g,
-										function(m){return ascii(parseInt(m, 16));})
-									};
+									this.cram = {algo:'MD5', challenge:args[i].substr(9).replace(/[0-9a-fA-F]{2}/g, hex2ascii)};
 								}
 								else {
 									if (args[i] === 'NR') {