File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1038,21 +1038,18 @@ static bool snmp_session_set_auth_protocol(struct snmp_session *s, zend_string *
1038
1038
}
1039
1039
#endif
1040
1040
1041
- smart_string err = {0 };
1042
-
1043
- smart_string_appends (& err , "Authentication protocol must be \"SHA\"" );
1041
+ zend_value_error (
1042
+ "Authentication protocol must be \"SHA\""
1044
1043
#ifdef HAVE_SNMP_SHA256
1045
- smart_string_appends ( & err , " or \"SHA256\"" );
1044
+ " or \"SHA256\""
1046
1045
#endif
1047
1046
#ifdef HAVE_SNMP_SHA512
1048
- smart_string_appends ( & err , " or \"SHA512\"" );
1047
+ " or \"SHA512\""
1049
1048
#endif
1050
1049
#ifndef DISABLE_MD5
1051
- smart_string_appends ( & err , " or \"MD5\"" );
1050
+ " or \"MD5\""
1052
1051
#endif
1053
- smart_string_0 (& err );
1054
- zend_value_error ("%s" , err .c );
1055
- smart_string_free (& err );
1052
+ );
1056
1053
return false;
1057
1054
}
1058
1055
/* }}} */
You can’t perform that action at this time.
0 commit comments