changeset 4030:8649b543e698

6544792 IPP responses have unmatched request-id
author jacobs
date Fri, 13 Apr 2007 16:44:02 -0700
parents 410bad45e843
children 7c86b30fec6f
files usr/src/lib/print/libipp-core/common/read.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/print/libipp-core/common/read.c	Fri Apr 13 14:29:47 2007 -0700
+++ b/usr/src/lib/print/libipp-core/common/read.c	Fri Apr 13 16:44:02 2007 -0700
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  *
  */
@@ -623,7 +623,7 @@
 	(void) papiAttributeListAddInteger(message, PAPI_ATTR_REPLACE,
 				attr_name, s);
 
-	memcpy(&s, &buf[4], 4);
+	memcpy(&i, &buf[4], 4);
 	i = (uint32_t)ntohl(i);
 	(void) papiAttributeListAddInteger(message, PAPI_ATTR_REPLACE,
 				"request-id", i);