Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > cfaa17229bc526063e015bd1e4339fa7 > files > 9

links-2.1-0.pre18.14mdv2007.1.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");
 		}