From:
[email protected]
If someone sends a patch I can certainly build fixed packages. I don't
have time right now to go find the patch myself, though.
Cheers!
Taking you to the word, here is your patch, ready to be dropped in debian/patches :-)
I've attached also fixes for two other serious bugs, which may be important to have fixed before sarge.
Please note that these patches apply with offset, and will need to be removed from debian/patches when you package 3.0.6 in the future.
And please find time to send the package to testing-proposed-updates, or maybe Steve can handle this part. :-)
Cheers,
Fabien
--- samba-3.0.5-orig/source/nsswitch/wins.c.orig 2004-06-21 21:01:02.000000000 +0100
+++ samba-3.0.5/source/nsswitch/wins.c 2004-06-21 21:02:22.000000000 +0100
@@ -90,7 +90,7 @@
{
int fd = -1;
struct ip_service *address = NULL;
- struct in_addr *ret;
+ struct in_addr *ret = NULL;
int j, flags = 0;
if (!initialised) {
--- samba-3.0.5-orig/source/rpc_server/srv_spoolss_nt.c
+++ samba-3.0.5/source/rpc_server/srv_spoolss_nt.c
@@ -3725,6 +3725,12 @@
info->data=NULL;
info->count=0;
+ /* a bug in xp sp2 rc2 causes it to send a fnpcn request without
+ sending a ffpcn() request first */
+
+ if ( !option )
+ return WERR_BADFID;
+
for (i=0; i<option->count; i++) {
option_type=&(option->ctr.type[i]);
@@ -3787,6 +3793,12 @@
info->data=NULL;
info->count=0;
+ /* a bug in xp sp2 rc2 causes it to send a fnpcn request without
+ sending a ffpcn() request first */
+
+ if ( !option )
+ return WERR_BADFID;
+
get_printer_snum(p, hnd, &snum);
for (i=0;