chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
key.c (key_pynew): Fix stupid error-checking sense bug.
[catacomb-python]
/
key.c
diff --git
a/key.c
b/key.c
index 7deb3825e71deda4b2a4f307ef218a4d491042e0..7820f1d4db62a3f4252c8306a85d3de39aba73ae 100644
(file)
--- a/
key.c
+++ b/
key.c
@@
-1394,7
+1394,7
@@
static PyObject *key_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
keyfile_pytype, &kfobj, convu32, &id,
&type, &exptime))
goto end;
keyfile_pytype, &kfobj, convu32, &id,
&type, &exptime))
goto end;
- if ((err = key_new(KEYFILE_KF(kfobj), id, type, exptime, &k))
=
= 0)
+ if ((err = key_new(KEYFILE_KF(kfobj), id, type, exptime, &k))
!
= 0)
KEYERR(err);
return (key_dowrap(ty, kfobj, k));
end:
KEYERR(err);
return (key_dowrap(ty, kfobj, k));
end: