From 7e7751ea8182a2a467f8254a460e405d9303e00a Mon Sep 17 00:00:00 2001 From: me_desk Date: Thu, 27 Dec 2012 14:44:28 +0000 Subject: bugfixes: invalid argument to nodewait_list_delete() and minor protocol version was written in the same byte as major version git-svn-id: svn://localhost/project_picapica/trunk@216 fb96df88-216d-11de-830c-f3023f12d8ac --- PICA_node.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'PICA_node.c') diff --git a/PICA_node.c b/PICA_node.c index ad4307d..9a8264a 100755 --- a/PICA_node.c +++ b/PICA_node.c @@ -2573,6 +2573,7 @@ struct nodewait *kill_ptr = 0, *nw = nodewait_list; while(nw) { + PICA_debug3("checking nodewait pointer %p", nw); if (PICA_NODEWAIT_FINISHED_OK == nw->state) { struct nodelink *nlp; @@ -2586,7 +2587,7 @@ while(nw) if (mp) { mp->tail[0] = PICA_PROTO_VER_HIGH; - mp->tail[0] = PICA_PROTO_VER_LOW; + mp->tail[1] = PICA_PROTO_VER_LOW; } } kill_ptr = nw; @@ -2602,7 +2603,7 @@ while(nw) if (kill_ptr) { - nodewait_list_delete(nw); + nodewait_list_delete(kill_ptr); kill_ptr = 0; } } -- cgit v1.2.1