Menu

#247 tau_uri2Addr() NULL check for pDNR

1.4.2.0
closed
None
2019-04-12
2019-04-08
No

In tau_dnr.c, in the function tau_uri2Addr() ; while assigning the value to pDNR, it is assumed that the DNR is already initialized.

pDNR = (TAU_DNR_DATA_T *) appHandle->pUser;

Proposing to add a NULL check before looking into the cache, as per the attached diff.
If found NULL, TRDP_UNRESOLVED_ERR should be returned.

Same proposal also for tau_addr2Uri() function.

1 Attachments

Discussion

  • Bernd Löhr

    Bernd Löhr - 2019-04-10
    • status: open --> accepted
     
  • Bernd Löhr

    Bernd Löhr - 2019-04-10

    Thank you, you're correct. Please add the checks...

     
  • Siddhi Wadgaonkar

    • status: accepted --> closed
     
  • Siddhi Wadgaonkar

    Committed. r1860

     

Log in to post a comment.

MongoDB Logo MongoDB