diff options
Diffstat (limited to 'usr/src/uts/common/c2/audit.c')
-rw-r--r-- | usr/src/uts/common/c2/audit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/uts/common/c2/audit.c b/usr/src/uts/common/c2/audit.c index bbaf783668..d72c41fb0f 100644 --- a/usr/src/uts/common/c2/audit.c +++ b/usr/src/uts/common/c2/audit.c @@ -1917,9 +1917,7 @@ audit_cryptoadm(int cmd, char *module_name, crypto_mech_name_t *mech_names, for (i = 0; i < mech_count; i++) { pb += n; - l -= n; - if (l < 0) - l = 0; + l = (n >= l) ? 0 : l - n; if (i == mech_count - 1) (void) strcpy(space, ""); |