Module Name:    src
Committed By:   maya
Date:           Mon Aug  5 13:45:01 UTC 2019

Modified Files:
        src/usr.sbin/bta2dpd/bta2dpd: sbc_encode.c

Log Message:
Remove duplicate check for curpkt > 13

We already guarantee this above:
        if (numpkts < 1 || numpkts > 13) {
                        return -1;


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c

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

Modified files:

Index: src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
diff -u src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.6 src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.7
--- src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.6	Sat Jul 27 23:33:09 2019
+++ src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c	Mon Aug  5 13:45:01 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: sbc_encode.c,v 1.6 2019/07/27 23:33:09 maya Exp $ */
+/* $NetBSD: sbc_encode.c,v 1.7 2019/08/05 13:45:01 maya Exp $ */
 
 /*-
  * Copyright (c) 2015 - 2016 Nathanial Sloss <nathanialsl...@yahoo.com.au>
@@ -997,9 +997,6 @@ recvstream(int in, int outfd)
 		totalSize += 2 * decsize;
 		offset += decsize;
 		cur_pkt++;
-
-		if (cur_pkt > 13)
-			break;
 	}
 
 	res = (ssize_t)(sizeof(myHeader)) + next_pkt;

Reply via email to