Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 7909056b8d318a670bd2044d8ef97cd5 > files > 6

links-2.2-10.1.mga1.src.rpm

--- links-2.1pre18/smb.c.smb	2006-11-20 08:02:22.000000000 -0700
+++ links-2.1pre18/smb.c	2006-11-20 08:19:11.000000000 -0700
@@ -3,8 +3,9 @@
 #define SMBCLIENT	0
 #define SMBC		1
 #define N_CLIENTS	2
+#define SMB_DISABLED	3
 
-int smb_client = 0;
+int smb_client = SMB_DISABLED;
 
 struct smb_connection_info {
 	int client;
@@ -227,6 +228,9 @@ void smb_func(struct connection *c)
 				}
 			}
 			break;
+		case SMB_DISABLED:
+			fprintf(stderr,"SMB support disabled due to CVE-2006-5925");
+			_exit(1);
 		default:
 			internal("unsuported smb client");
 		}