Ticket #801 (closed defect: fixed)
[PATCH] pointer checks
| Reported by: | microe | Owned by: | dgollub |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.40 |
| Component: | Engine | Version: | 0.36 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
1. At line 210 of opensync_merger.c new_node is checked for null. Then
at line 213 new_node is dereferenced to get the doc pointer for the destination doc.
Remove call (and commented out call).
2. In opensync_xml.c at line 219 the two pointers are compared. But at
line 223 they are checked for null. Since strcmp will dereference both pointers to compare their strings this would cause a segfault.
Move the pointer test to before the strcmp.
3. In opensync_serializer.c auth is checked when *auth was the pointer
that was actually given the allocated authentication object.
Change the check to *auth.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
