Module Name:    src
Committed By:   pooka
Date:           Tue Mar  8 10:02:01 UTC 2011

Modified Files:
        src/lib/librumpuser: sp_common.c

Log Message:
return correct value when reading a short frame


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/librumpuser/sp_common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpuser/sp_common.c
diff -u src/lib/librumpuser/sp_common.c:1.28 src/lib/librumpuser/sp_common.c:1.29
--- src/lib/librumpuser/sp_common.c:1.28	Tue Feb 15 10:37:07 2011
+++ src/lib/librumpuser/sp_common.c	Tue Mar  8 10:02:01 2011
@@ -1,4 +1,4 @@
-/*      $NetBSD: sp_common.c,v 1.28 2011/02/15 10:37:07 pooka Exp $	*/
+/*      $NetBSD: sp_common.c,v 1.29 2011/03/08 10:02:01 pooka Exp $	*/
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -419,8 +419,9 @@
 		}
 
 		spc->spc_off += n;
-		if (spc->spc_off < HDRSZ)
-			return -1;
+		if (spc->spc_off < HDRSZ) {
+			return 0;
+		}
 
 		/*LINTED*/
 		framelen = spc->spc_hdr.rsp_len;

Reply via email to