GNOME Bugzilla – Bug 732823
Fix various Missing Null checks
Last modified: 2014-07-14 09:52:13 UTC
Created attachment 280025 [details] [review] Fix various Missing Null checks The missing Null checks can cause Null Pointer dereference. One more fix : int res; if ((ctxt == NULL) || (ctxt->controlFd == INVALID_SOCKET) || (file == NULL)) return(-1); - if (file == NULL) return (0); removed this line as file == NULL is checked in above line and return -1 as this is error case and not failed case. Attached patch fixes some of these issues.
Okay I had to fix a few things including an error, but most of it was right, pushed in get as 1811add768cabe36f763c960a40698418c5cbe47 thanks ! Daniel