Skip to content

Commit

Permalink
Update irrsmo00.c
Browse files Browse the repository at this point in the history
Remove accounting for previously allocated buffer space. Since only 1 command comes to SMO00, this should only practically be the XML header returned on the first call (116 bytes or so).

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
  • Loading branch information
ElijahSwiftIBM committed Feb 29, 2024
1 parent 311fdd9 commit faf7d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyracf/common/irrsmo00.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static PyObject *call_irrsmo00(PyObject *self, PyObject *args, PyObject *kwargs)
full_result = PyList_New(1);
PyList_SetItem(full_result, 0, Py_BuildValue("y#", result_buffer, result_len));

if ((saf_rc == 8) && (racf_rc == 4000) && (racf_rsn < (100000000 - result_buffer_size))){
if ((saf_rc == 8) && (racf_rc == 4000) && (racf_rsn < 100000000)){
free(result_buffer);
result_len = racf_rsn;
result_buffer = malloc(result_len);
Expand Down

0 comments on commit faf7d4a

Please sign in to comment.