iprop: handle case where master sends nothing new
This commit is contained in:
@@ -317,6 +317,11 @@ receive_loop (krb5_context context,
|
|||||||
uint32_t timestamp;
|
uint32_t timestamp;
|
||||||
uint32_t op;
|
uint32_t op;
|
||||||
|
|
||||||
|
if ((ret = krb5_ret_uint32(sp, &vers)) == HEIM_ERR_EOF) {
|
||||||
|
krb5_warnx(context, "master sent no new iprop entries");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO We could do more to validate the entries from the master
|
* TODO We could do more to validate the entries from the master
|
||||||
* here. And we could use/reuse more kadm5_log_*() code here.
|
* here. And we could use/reuse more kadm5_log_*() code here.
|
||||||
@@ -325,8 +330,7 @@ receive_loop (krb5_context context,
|
|||||||
* what we needed and just write this to the log file and let
|
* what we needed and just write this to the log file and let
|
||||||
* kadm5_log_recover() do the rest.
|
* kadm5_log_recover() do the rest.
|
||||||
*/
|
*/
|
||||||
if (krb5_ret_uint32(sp, &vers) != 0 ||
|
if (ret || krb5_ret_uint32(sp, ×tamp) != 0 ||
|
||||||
krb5_ret_uint32(sp, ×tamp) != 0 ||
|
|
||||||
krb5_ret_uint32(sp, &op) != 0 ||
|
krb5_ret_uint32(sp, &op) != 0 ||
|
||||||
krb5_ret_uint32(sp, &len) != 0) {
|
krb5_ret_uint32(sp, &len) != 0) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user