Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > f51146c615b131e38417173c09508363 > files > 3

links-2.15-3.mga6.src.rpm

--- links-2.3/smb.c.smb	2011-09-28 10:58:55.347736901 +0800
+++ links-2.3/smb.c	2011-09-28 10:59:48.057745915 +0800
@@ -5,8 +5,9 @@
 #define SMBCLIENT	0
 #define SMBC		1
 #define N_CLIENTS	2
+#define SMB_DISABLED	3
 
-static int smb_client = 0;
+static int smb_client = SMB_DISABLED;
 
 #define CLIENT_NOT_FOUND_STRING	"client not found"
 
@@ -242,6 +243,9 @@
 				}
 			}
 			break;
+		case SMB_DISABLED:
+			fprintf(stderr,"SMB support disabled due to CVE-2006-5925");
+			_exit(1);
 		default:
 			internal("unsupported smb client");
 		}