[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I noticed an assignment that gets immediately overwritten, contradicting
a nearby comment.
According to the comment, 'optval' should get disabled half of the time.

As at the time of the conditional assignment optval was already set to
different nonzero values, it looks to me like the trailing assignment,
which was introduced in commit 737e1a71, may be unintended.

Signed-off-by: Nicolas Kaiser <nikai@xxxxxxxxx>
---
 syscalls/setsockopt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/syscalls/setsockopt.c b/syscalls/setsockopt.c
index 4d5877b..ce610af 100644
--- a/syscalls/setsockopt.c
+++ b/syscalls/setsockopt.c
@@ -322,8 +322,6 @@ void sanitise_setsockopt(int childno)
 	 */
 	if (rand() % 2)
 		shm->a4[childno] = 0;
-
-	shm->a4[childno] = sizeof(int);
 }
 
 struct syscall syscall_setsockopt = {
--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux