NetBSD-Bugs archive

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

bin/50196: Assigment twice in delete_invite.



>Number:         50196
>Category:       bin
>Synopsis:       Assigment twice in delete_invite.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 03 08:15:00 +0000 2015
>Originator:     Henning Petersen
>Release:        -current
>Organization:
>Environment:
>Description:
Table is assigned twice in delete_invite.
>How-To-Repeat:

>Fix:
diff -u -p -r1.10 table.c
--- libexec/talkd/table.c	16 Mar 2009 01:13:38 -0000	1.10
+++ libexec/talkd/table.c	30 Aug 2015 11:50:34 -0000
@@ -199,7 +199,6 @@ delete_invite(uint32_t id_num)
 {
 	TABLE_ENTRY *ptr;
 
-	ptr = table;
 	if (debug)
 		syslog(LOG_DEBUG, "delete_invite(%"PRIu32")", id_num);
 	for (ptr = table; ptr != NIL; ptr = ptr->next) {



Home | Main Index | Thread Index | Old Index