Changeset effbb7 in libssh2
- Timestamp:
- 02/01/12 10:56:42 (4 months ago)
- Branches:
- master
- Children:
- e95c7d
- Parents:
- 0ebe6f
- git-author:
- Peter Stuge <peter@…> (02/01/12 10:56:42)
- git-committer:
- Peter Stuge <peter@…> (02/01/12 11:35:05)
- File:
-
- 1 edited
-
example/subsystem_netconf.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
example/subsystem_netconf.c
r0ebe6f reffbb7 62 62 char *buf, size_t buflen) 63 63 { 64 ssize_t len, rd = 0; 64 ssize_t len; 65 size_t rd = 0; 65 66 char *endreply = NULL, *specialsequence = NULL; 66 67 … … 86 87 specialsequence = strstr(endreply, "]]>]]>"); 87 88 88 } while (!endreply || !specialsequence); 89 } while (!specialsequence && rd < buflen); 90 91 if (!specialsequence) { 92 fprintf(stderr, "%s: ]]>]]> not found! read buffer too small?\n", __func__); 93 return -1; 94 } 89 95 90 96 /* discard the special sequence so that only XML is returned */
Note: See TracChangeset
for help on using the changeset viewer.
