Package: perdition
Version: 1.19~rc3-2
Severity: serious

Perdition is unable to parse nis map which breaks nis support. The bug is in perditiondb_nis.c.

The syscall ypmatch is not used with the right value for the inkeylen argument : the value used is strlen(key)+1 and should be strlen(key)

Here is a proposal to patch this issue


jazz



Signed-off-by: jazz <j...@vaala.mine.nu>
---
 perdition/db/nis/perditiondb_nis.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: perdition-1.19~rc3/perdition/db/nis/perditiondb_nis.c
===================================================================
--- perdition-1.19~rc3.orig/perdition/db/nis/perditiondb_nis.c
+++ perdition-1.19~rc3/perdition/db/nis/perditiondb_nis.c
@@ -87,7 +87,7 @@ int dbserver_get(
   res = yp_match(domain, 
 	map,
 	key_str,
-	strlen(key_str) + 1,
+	strlen(key_str),
 	str_return,
 	len_return);
 

<<attachment: christophe_segui.vcf>>

Reply via email to