When Donald Trump was faced with same situation at the June 2018 summit in Singapore he returned the salute.
At the time critics shook their heads at Trump and a retired US Army general said Trump just saluted a "regime of terror, murder, and unspeakable horror." The White House responded to say it was "common courtesy" to return a salute.
Vladimir Putin Refuses To Salute N. Korean General
PHOTO RELEASED BY NORTH KOREAN GOVERNMENT VIA KCNA/KNS, JAPAN OUT UNTIL 14 DAYS AFTER THE DAY OF TRANSMISSION, AP PROVIDES ACCESS TO THIS HANDOUT PHOTO TO BE USED SOLELY TO ILLUSTRATE NEWS REPORTING OR COMMENTARY ON THE EVENTS DEPICTED IN THIS IMAGE