2009-12-03 10:06:20 +00:00
|
|
|
diff -up cups-1.4.2/backend/snmp.c.str3413 cups-1.4.2/backend/snmp.c
|
|
|
|
--- cups-1.4.2/backend/snmp.c.str3413 2009-01-14 22:40:58.000000000 +0000
|
2009-12-08 10:57:19 +00:00
|
|
|
+++ cups-1.4.2/backend/snmp.c 2009-12-08 10:54:11.798515550 +0000
|
2009-12-03 10:06:20 +00:00
|
|
|
@@ -999,7 +999,7 @@ read_snmp_response(int fd) /* I - SNMP
|
|
|
|
DEVICE_PRODUCT, LexmarkProductOID2);
|
|
|
|
_cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,
|
|
|
|
packet.community, CUPS_ASN1_GET_REQUEST,
|
|
|
|
- DEVICE_URI, LexmarkDeviceIdOID);
|
|
|
|
+ DEVICE_ID, LexmarkDeviceIdOID);
|
|
|
|
_cupsSNMPWrite(fd, &(packet.address), CUPS_SNMP_VERSION_1,
|
|
|
|
packet.community, CUPS_ASN1_GET_REQUEST,
|
|
|
|
DEVICE_PRODUCT, XeroxProductOID);
|
2009-12-08 10:57:19 +00:00
|
|
|
@@ -1054,7 +1054,9 @@ read_snmp_response(int fd) /* I - SNMP
|
|
|
|
break;
|
2009-12-03 10:06:20 +00:00
|
|
|
|
2009-12-08 10:57:19 +00:00
|
|
|
case DEVICE_ID :
|
|
|
|
- if (device && packet.object_type == CUPS_ASN1_OCTET_STRING)
|
|
|
|
+ if (device && packet.object_type == CUPS_ASN1_OCTET_STRING &&
|
|
|
|
+ (!device->id ||
|
|
|
|
+ strlen(device->id) < packet.object_value.string.num_bytes))
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Update an existing cache entry...
|
|
|
|
@@ -1107,7 +1109,7 @@ read_snmp_response(int fd) /* I - SNMP
|
2009-12-03 10:06:20 +00:00
|
|
|
|
|
|
|
case DEVICE_URI :
|
|
|
|
if (device && packet.object_type == CUPS_ASN1_OCTET_STRING &&
|
|
|
|
- !device->uri)
|
2009-12-08 10:57:19 +00:00
|
|
|
+ !device->uri && packet.object_value.string.num_bytes > 0)
|
2009-12-03 10:06:20 +00:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Update an existing cache entry...
|
2009-12-08 10:57:19 +00:00
|
|
|
diff -up cups-1.4.2/CHANGES-1.4.txt.str3413 cups-1.4.2/CHANGES-1.4.txt
|