CoRD icon indicating copy to clipboard operation
CoRD copied to clipboard

potential unset variable used in rdpdr

Open danieltrentman opened this issue 10 years ago • 0 comments

diff -wb rdpdr-old.m rdpdr.m 797a798

      if (prev != NULL)

Need to test prev before assignment in while loop:

RDAsynchronousIORequest *iorq = conn->fileInfo[fd].firstIORequest, *prev;

while (iorq != NULL) { if (iorq == requestToRemove) { if (prev != NULL) prev->next = iorq->next; xfree(requestToRemove); return iorq->next; }

danieltrentman avatar May 11 '15 23:05 danieltrentman